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