Re: Manual KVO quirks with NSDocument and NSWindowController
Re: Manual KVO quirks with NSDocument and NSWindowController
- Subject: Re: Manual KVO quirks with NSDocument and NSWindowController
- From: Tim Lucas <email@hidden>
- Date: Wed, 1 Jun 2005 14:37:17 +1000
On 01/06/2005, at 1:48 PM, Andrew White wrote:
Obviously, either some third party is holding a retain on the child or
the NSDocument code that deals with closing calls autorelease rather
than release. For now, I'd rather work around the problem completely
and hook either the "disconnect from document" or "my window closed"
event in the NSWindowController, thus allowing me to cleanly
de-register KVO.
How do I hook this event?
-(void)windowDidClose:(NSNotification*)aNotification
And I'm pretty sure the following gets called with a argument of nil
for doc disconnection:
-(void)setDocument:(id)aDocument
- tim lucas
_______________________________________________
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