Re: does windowDidClose or not?
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