ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/MacOSX/prefs_macosx.mm
(Generate patch)

Comparing SheepShaver/src/MacOSX/prefs_macosx.mm (file contents):
Revision 1.3 by asvitkine, 2010-01-02T19:24:24Z vs.
Revision 1.4 by asvitkine, 2010-01-02T22:08:51Z

# Line 98 | Line 98
98  
99   void prefs_init(void)
100   {
101 +        NSAutoreleasePool *pool;
102          NSMenu *appMenu;
103          NSMenuItem *menuItem;
104  
105 +        pool = [[NSAutoreleasePool alloc] init];
106 +
107          appMenu = [[[NSApp mainMenu] itemAtIndex:0] submenu];
108          menuItem = [[NSMenuItem alloc] initWithTitle:@"Preferences..." action:@selector(openPreferences:) keyEquivalent:@","];
109          [appMenu insertItem:menuItem atIndex:2];
# Line 108 | Line 111 | void prefs_init(void)
111          [menuItem release];
112          
113          [NSApp setDelegate:[[SheepShaverMain alloc] init]];
114 +
115 +        [pool release];
116   }
117  
118  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines