Re: NSTextView won't deallocate
Re: NSTextView won't deallocate
- Subject: Re: NSTextView won't deallocate
- From: Ryan Joseph <email@hidden>
- Date: Mon, 18 Jul 2011 07:26:06 -0600
I literally mean that _exact_ snippet is leaking, 2 lines of code with no retaining by any superviews. I only have limited experience with Cocoa and don't use Objective C so maybe someone else could test this. Just allocate, initialize then release the object and see if it's ever deallocated. Impossible that would happen right?
On Jul 17, 2011, at 10:59 PM, Jens Alfke wrote:
> Impossible to tell from that snippet. Keep in mind that a view’s superview retains it, so a view in a window will never be dealloced until you remove it from its superview or close/release the window. Another possibility is that the view is retained by some other object that’s being leaked … sometimes you have to look at all the leaks to find the one that triggers all the others. (Use Instruments or the ‘leaks’ command to look for all leaked objects.)
Regards,
Ryan Joseph
thealchemistguild.com
_______________________________________________
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