On Apr 28, 2012, at 10:17 , Richard Somers wrote:

> I have a number of controls with custom bindings that are programmatically 
> added to a view hierarchy in a window. Calling –unbind: on these controls 
> when the window is closes is a challenge.
> 
> But it actually does not seem to matter. If –unbind: is never called and the 
> window is closed there are no memory leaks reported in Instruments.
> 
> Apple has an undocumented class NSAutounbinder which apparently addresses a 
> problem with retain cycles when binding to File's Owner from a nib file. 
> However I am binding programmatically not inside a nib file. But perhaps 
> NSAutounbinder is somehow working in my behalf.
> 
> Is unbinding my programmatic bindings when the window closes something that I 
> should worry about? 

To get an answer on this, you'll probably need to say which memory model you're 
using: GC, ARC or traditional RR.



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to