Re: NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them.
Re: NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them.
- Subject: Re: NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them.
- From: j o a r <email@hidden>
- Date: Tue, 17 Jul 2001 21:52:35 +0200
On tisdag, juli 17, 2001, at 09:18 , email@hidden wrote:
If I quit an application, shouldn't NSApplication attempt to close each
window and have the window still call the delegate with the
windowShouldClose message? If it doesn't do this then the utility of
this delegate message to prompt for the "save changes" confirmation is
100% nothing; it's utterly useless because you have to implement some
other mechanism anyway.
Another related thing I thought about when I implemented this in my
application today was that in -applicationShouldTerminate you get to
choose between these return values:
NSTerminateNow,
NSTerminateCancel,
NSTerminateLater
Why are these choises (or "NSCloseNow" et.c.) not available for
windowShouldClose, only BOOL? Since we are often using non-blocking
sheets this is a bit of a problem - or am I missing something?
Regards,
j o a r