On Mar 19, 2012, at 5: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?

Are you using NSViewController or NSWindowController? If so, then that's not 
necessary, since those two classes clean up after themselves. It is also not 
necessary in the principal nib, since I don't think that ever gets deallocated. 
It is only necessary if you used NSBundle to load the nib manually.

Nick Zitzmann
<http://www.chronosnet.com/>


_______________________________________________

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