Code for saving when closing prefs window is no longer a delegate method.

This commit is contained in:
Mitchell Livingston 2006-08-08 11:37:54 +00:00
parent 8a9e593121
commit 251a05c305
2 changed files with 3 additions and 4 deletions

View File

@ -77,9 +77,7 @@
fDefaults = [NSUserDefaults standardUserDefaults]; fDefaults = [NSUserDefaults standardUserDefaults];
fHandle = handle; fHandle = handle;
NSWindow * window = [self window]; [[self window] update]; //make sure nib is loaded right away
[window setDelegate: window];
[window update]; //make sure nib is loaded right away
} }
return self; return self;
} }

View File

@ -33,9 +33,10 @@
[self close]; [self close];
} }
- (void) windowWillClose: (NSNotification *) notification - (void) close
{ {
[self makeFirstResponder: nil]; //essentially saves changes on window close [self makeFirstResponder: nil]; //essentially saves changes on window close
[super close];
} }
@end @end