|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On Jun 8, 2004, at 8:33 PM, Allan Odgaard wrote:
On 9. Jun 2004, at 4:49, Dennis C. De Mars wrote:
My solution was to send unbind: messages in the windowWillClose:-notification.OK, I can see that this would work. Do you have to send an unbind message to each view object that has a binding?
At least all those which cause retainment of the involved parties. But in my case I only had a single binding, so not much of a problem...
[...] If the window controller could be convinced to completely release the window before it is itself dealloced then the cycle could be broken but there is no way I know of to do this
You can send setWindow: with nil to the window controller.
Thanks! I missed that possibility. I'm going to try it out, it might save me from having to go through all that folderol I outlined in my previous message.
It looks to me like I could override the NSWindowController -close method and use it there. Well, I'll experiment and see what I can do.
This could be in a response to a 'window will close'-notification. But there are cases where the window may re-open, and thus one needs to have the class responsible for releasing the window controller also perform this workaround.
| References: | |
| >Retain cycle problem with bindings & NSWindowController (From: "Dennis C. De Mars" <email@hidden>) | |
| >Re: Retain cycle problem with bindings & NSWindowController (From: Allan Odgaard <email@hidden>) | |
| >Re: Retain cycle problem with bindings & NSWindowController (From: "Dennis C. De Mars" <email@hidden>) | |
| >Re: Retain cycle problem with bindings & NSWindowController (From: Allan Odgaard <email@hidden>) | |
| >Re: Retain cycle problem with bindings & NSWindowController (From: "Dennis C. De Mars" <email@hidden>) | |
| >Re: Retain cycle problem with bindings & NSWindowController (From: Allan Odgaard <email@hidden>) | |
| >Re: Retain cycle problem with bindings & NSWindowController (From: "Dennis C. De Mars" <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.