Fenster duplizieren

L

LZ1410

Neues Mitglied
Thread Starter
Dabei seit
01.09.2014
Beiträge
11
Reaktionspunkte
0
Hallo,
ich habe ein Problem in Xcode und zwar möchte ich das beim klick auf "Neues Fenster" (Ablage -> Neues Fenster cmd + N) mein _window dupliziert wird. Und es muss für das neue Fenster ein Code ausgeführt werden
Code:
[COLOR=#000000][FONT=Menlo]NSString[/FONT][FONT=Menlo] * string = [[[/FONT][FONT=Menlo]NSUserDefaults[/FONT][FONT=Menlo] [/FONT][FONT=Menlo]standardUserDefaults[/FONT][FONT=Menlo]] [/FONT][FONT=Menlo]objectForKey[/FONT][FONT=Menlo]:[/FONT][FONT=Menlo]@"home"[/FONT][FONT=Menlo]];[/FONT][/COLOR][COLOR=#FFFFFF][FONT=Menlo][COLOR=#000000]    NSURL *URL = [NSURL URLWithString:string];[/COLOR][/FONT][/COLOR]
[COLOR=#000000][FONT=Menlo]    [[[/FONT][FONT=Menlo]web[/FONT][FONT=Menlo] [/FONT][FONT=Menlo]mainFrame[/FONT][FONT=Menlo]] [/FONT][FONT=Menlo]loadRequest[/FONT][FONT=Menlo]:[[/FONT][FONT=Menlo]NSURLRequest[/FONT][FONT=Menlo] [/FONT][FONT=Menlo]requestWithURL[/FONT][FONT=Menlo]:[/FONT][FONT=Menlo]URL]];[/FONT][/COLOR]
Außerdem muss auch noch eine NSTOOLBAR und WebView geklont werden.
Hat jemand eine Idee?
Schon mal danke im Voraus.

LZ1410
 
Zurück
Oben Unten