Re: How a window was closed?
Re: How a window was closed?
- Subject: Re: How a window was closed?
- From: Eric Gorr <email@hidden>
- Date: Fri, 5 Mar 2010 13:44:33 -0500
My point is not that I don't know how to fix it or cannot (as an absolute) fix it, but that it is not practical to fix it at this time, so I need a way to determine how the window was closed.
If you have never faced one of these situations before, just wait awhile...you will.
On Mar 5, 2010, at 12:33 PM, Greg Guerin wrote:
> Eric Gorr wrote:
>
>> The use of a global was considered and rejected. But, would likely be reconsidered if -windowShouldClose: does not work as expected.
>
>
> Then add a category method that means "close but preserve open state for next launch", and call that from the termination delegate.
>
> Or a category method that tells the receiver to copy its current open state, which will then be written to disk when the next close message is received.
>
> I don't see a big difference in how the two things (user-close vs. close-but-preserve-opened-state) are distinguished by the panels. Use whatever makes sense for the code base. The key point is that the latter only occurs at app termination. Tying it into app termination is what makes it different.
>
> -- GG
>
>
> _______________________________________________
>
> 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
_______________________________________________
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