Re: Retain cycle problem with bindings & NSWindowController
Re: Retain cycle problem with bindings & NSWindowController
- Subject: Re: Retain cycle problem with bindings & NSWindowController
- From: Allan Odgaard <email@hidden>
- Date: Tue, 8 Jun 2004 11:46:31 +0200
On 8. Jun 2004, at 11:06, Dennis C. De Mars wrote:
So, even in this simplest of examples the NSWindowController object is
caught in a deadly embrace with the view object binding to it, which
the NSDocument seems to be able to break.
The problem I had did involve NSDocument, but I do think that a window
controller is more susceptible to the retain-cycle problem.
My solution was to send unbind: messages in the
windowWillClose:-notification.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.