• 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: Ben Dougall <email@hidden>
  • Date: Mon, 17 Apr 2006 11:51:48 +0100


On Monday, April 17, 2006, at 11:40 am, Uli Kusterer wrote:

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.

great -- sounds like exactly what i'm after then.

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

yes but a window closing and a window deallocating are two different things -- you can still easily have a working pointer to the window once it's closed i think.


anyway windowWillClose is definitely what i was after.

thanks for the answers,
ben.

_______________________________________________
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: "Finlay Dobbie" <email@hidden>
References: 
 >Re: does windowDidClose or not? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: does windowDidClose or not?
  • Next by Date: Re: Ideas to implement a view displaying a graph
  • Previous by thread: Re: does windowDidClose or not?
  • Next by thread: Re: does windowDidClose or not?
  • Index(es):
    • Date
    • Thread