• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them. (From: email@hidden)

  • Prev by Date: Re: Removing Developer Tools - WebObjects demo
  • Next by Date: Re: Collection of Cocoa & objc questions from a "newbie"
  • Previous by thread: NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them.
  • Next by thread: Re: NSApplication Bug. Quit doesn't notify windows (& delegates), just kills them.
  • Index(es):
    • Date
    • Thread