Possible AppKit bug
Possible AppKit bug
- Subject: Possible AppKit bug
- From: Nicholas Shanks <email@hidden>
- Date: Sat, 05 May 2001 11:32:32 +0100
I'm new to cocoa, but implement the following code in my application
delegate and it doesn't work right:
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication
*)theApplication
{
return YES;
}
- (void)applicationWillTerminate:(NSNotification *)notification
{
// this doesn't seem to be called when last window closed
}
When I choose Command-Q, my app-will-terminate routine gets called, when I
click the close box of my only window, it does not. The application does
however terminate correctly.
Also, could someone tell me the difference between a delegate and a
controller?
Nicholas Shanks
--
ICQ: 55542254