Re: How is this an "incorrect decrement of a reference count"?
Re: How is this an "incorrect decrement of a reference count"?
- Subject: Re: How is this an "incorrect decrement of a reference count"?
- From: Charles Srstka <email@hidden>
- Date: Mon, 19 Mar 2012 18:47:46 -0500
On Mar 19, 2012, at 6:27 PM, G S wrote:
> That reminds me of another question, though: Someone earlier mentioned the need to release elements loaded from the nib, in dealloc. I didn't think this was necessary, so I don't do it. And there are no apparent leaks as a result. What's the story on that?
Memory management in nibs on OS X is perplexingly designed. The best thing to do with these is to use NSWindowController and NSViewController for loading nibs, and not to load them directly with NSBundle or NSNib.
Charles
_______________________________________________
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