• 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: Any way to tell why a window is closing?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to tell why a window is closing?


  • Subject: Re: Any way to tell why a window is closing?
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 21 Sep 2009 09:22:39 -0700


On Sep 21, 2009, at 8:15 AM, Scott Ribe wrote:

Within -windowWillClose, I need to know whether or not the user clicked the
close button on the window.

Well, if the user clicked the close button your -windowShouldClose delegate method will be called first. You could set a flag in there, perhaps.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Any way to tell why a window is closing? (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: Architecture for concurrent network client
  • Next by Date: Re: Optimizing Enormous lists in NSBrowser
  • Previous by thread: Re: Any way to tell why a window is closing?
  • Next by thread: an app that never quits
  • Index(es):
    • Date
    • Thread