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

Comparing BasiliskII/src/MacOSX/PrefsEditor.mm (file contents):
Revision 1.16 by nigel, 2005-08-09T03:28:53Z vs.
Revision 1.17 by nigel, 2005-09-19T06:02:47Z

# Line 131 | Line 131 | extern string UserPrefsPath;   // from pre
131          edited = NO;
132  
133          devs = @"/dev";
134 <        home = NSHomeDirectory();
134 >        home = [NSHomeDirectory() retain];
135          volsDS = [TableDS new];
136          SCSIds = [TableDS new];
137  
# Line 140 | Line 140 | extern string UserPrefsPath;   // from pre
140                  NSLog (@"%s - Can't create NSImageCell?", __PRETTY_FUNCTION__);
141  
142          blank  = [NSImage new];
143 <        locked = [NSImage alloc];
144 <        if ( [locked initWithContentsOfFile:
145 <                                 [[NSBundle mainBundle]
146 <                                                pathForImageResource: @"nowrite.icns"]] == nil )
143 >        locked = [[NSImage alloc] initWithContentsOfFile:
144 >                                [[NSBundle mainBundle] pathForImageResource: @"nowrite.icns"]];
145 >        if (locked == nil )
146                  NSLog(@"%s - Couldn't open write protection image", __PRETTY_FUNCTION__);
147  
148          return self;
# Line 151 | Line 150 | extern string UserPrefsPath;   // from pre
150  
151   - (void) dealloc
152   {
153 <        [volsDS   dealloc];
154 <        [SCSIds   dealloc];
155 <        [lockCell dealloc];
156 <        [locked   dealloc];
157 <        [blank    dealloc];
153 >        [volsDS   release];
154 >        [SCSIds   release];
155 >        [lockCell release];
156 >        [blank    release];
157 >        [locked   release];
158          [super    dealloc];
159   }
160  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines