Re: Best data source for table view in document window
Re: Best data source for table view in document window
- Subject: Re: Best data source for table view in document window
- From: Graham Cox <email@hidden>
- Date: Thu, 06 Sep 2012 11:01:52 +1000
On 06/09/2012, at 10:44 AM, Jerry Krinock <email@hidden> wrote:
> Regarding the indication, I've yet to find a single hook in Cocoa which gives me a reliable early warning that a document is closing.
If your document only has a single window, you could use:
- (void) windowWillClose:(NSNotification*) notification;
I've found this a reliable place (in fact the ONLY reliable place) to perform tear-down of KVO, etc. Of course if you support multiple windows of the same document that might need a bit of care to make work.
--Graham
_______________________________________________
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