Code for saving when closing prefs window is no longer a delegate method.
This commit is contained in:
parent
8a9e593121
commit
251a05c305
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue