Re: menu madness with retain count
Re: menu madness with retain count
- Subject: Re: menu madness with retain count
- From: Chris Hanson <email@hidden>
- Date: Tue, 27 Apr 2010 22:39:53 -0700
On Apr 27, 2010, at 3:27 PM, Shawn Erickson wrote:
> On Tue, Apr 27, 2010 at 3:22 PM, Uli Kusterer
> <email@hidden> wrote:
>
>> For example, bindings were notorious for causing retain circles when you bound to File's Owner in a NIB, and that was fixed in 10.5, IIRC.
>
> Fairly sure it is still an issue unless you are using a
> NSWindowController subclass as the File's Owner (at least on 10.5 not
> looked at 10.6 directly).
NSWindowController and NSViewController both handle breaking retain cycles with File’s Owner as of 10.5.
Since NSViewController was introduced in 10.5, I would generally assume any Cocoa nibs these days should have a subclass of one of those two classes (or NSApplication, in the case of the main nib file) as its File’s Owner.
— Chris
_______________________________________________
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