• 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: does windowDidClose or not?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: does windowDidClose or not?


  • Subject: Re: does windowDidClose or not?
  • From: Uli Kusterer <email@hidden>
  • Date: Mon, 17 Apr 2006 12:40:14 +0200

Am 16.04.2006 um 23:32 schrieb Ben Dougall:
do some things based on the user's input into the window (check boxes + text fields etc.). when the user closes the window that's when i want to go to work on the the info that the user has input. windowWillClose seems a bit too early. if a windowDidClose existed that'd be after all the editing has definitely finished.

Following the semantics of other DidXXX selectors in Cocoa, windowDidClose would have to be sent after the window has been released. By that time, everything the user entered is already gone. windowWillClose doesn't mean "may", it means it really _will_ close, but it hasn't yet, so this is your last opportunity to get anything from that window.


Seen from this vantage point, windowDidClose is about as pointless as an applicationDidTerminate: notification sent to NSApp would be.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: does windowDidClose or not?
      • From: Ben Dougall <email@hidden>
References: 
 >Re: does windowDidClose or not? (From: Ben Dougall <email@hidden>)

  • Prev by Date: : Correction: NSOutlineView setAutosaveExpandedItems
  • Next by Date: Re: does windowDidClose or not?
  • Previous by thread: Re: does windowDidClose or not?
  • Next by thread: Re: does windowDidClose or not?
  • Index(es):
    • Date
    • Thread