Re: NSDocument leak with top-of-NIB object controllers (10.6 ARC)
Re: NSDocument leak with top-of-NIB object controllers (10.6 ARC)
- Subject: Re: NSDocument leak with top-of-NIB object controllers (10.6 ARC)
- From: Kyle Sluder <email@hidden>
- Date: Thu, 22 Dec 2011 12:05:58 -0800
On Thu, Dec 22, 2011 at 11:29 AM, Fritz Anderson
<email@hidden> wrote:
> The document's NIB (no, I don't put the document in the NIB, and I'm using the window controller that comes with the document) contains an NSObjectController and an NSArrayController at the top level. Per "Patterns for Managing Outlets Become Consistent Across Platforms" in the "Transitioning to ARC Release Notes," the IBOutlet properties for those controllers were declared strong.
This seems to conflict with the Resource Programming Guide, which
recommends that your IBOutlets be declared weak (aka 'assign') on Mac
OS X: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/LoadingResources/CocoaNibs/CocoaNibs.html#//apple_ref/doc/uid/10000051i-CH4-SW26
--Kyle Sluder
_______________________________________________
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