diff options
author | Johan Paulsson <gonz@Akita.local> | 2013-12-02 11:28:52 -0800 |
---|---|---|
committer | Johan Paulsson <gonz@Akita.local> | 2013-12-02 11:28:52 -0800 |
commit | 000084adfd36c87051fb7df912a00fca35365f4e (patch) | |
tree | 236cbe625532de1551d6c465f92eebf8142263ae /tikzit/src/osx/AppDelegate.m | |
parent | 7e7e0607d0ab5a5c28ae593adc4a3235ee4b429e (diff) |
osx gui: Moved preamble window to preferences.
Moved the preamble window to the preference panel as a new tab. The PreambleController is now a subclass of NSView with related changes to the Preamble.xib. The toolbar that controlled default or custom preamble has been replaced with buttons in the interface.
Diffstat (limited to 'tikzit/src/osx/AppDelegate.m')
-rw-r--r-- | tikzit/src/osx/AppDelegate.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/osx/AppDelegate.m b/tikzit/src/osx/AppDelegate.m index affb95c..35484b7 100644 --- a/tikzit/src/osx/AppDelegate.m +++ b/tikzit/src/osx/AppDelegate.m @@ -49,7 +49,7 @@ NSString *preamblePlist = [supportDir stringByAppendingPathComponent:@"preambles.plist"]; preambleController = - [[PreambleController alloc] initWithWindowNibName:@"Preamble" + [[PreambleController alloc] initWithNibName:@"Preamble" plist:preamblePlist styles:[stylePaletteController nodeStyles] edges:[stylePaletteController edgeStyles]]; @@ -67,7 +67,7 @@ preambleController:preambleController tempDir:tempDir]; - preferenceController = [[PreferenceController alloc] initWithWindowNibName:@"Preferences"]; + preferenceController = [[PreferenceController alloc] initWithWindowNibName:@"Preferences" preambleController:preambleController]; // each application has one global preview controller [PreviewController setDefaultPreviewController:previewController]; |