Re: NSTextView won't deallocate
Re: NSTextView won't deallocate
- Subject: Re: NSTextView won't deallocate
- From: Graham Cox <email@hidden>
- Date: Tue, 19 Jul 2011 00:28:34 +1000
You do know about autorelease pools, right? See whether the object survives the next event cycle. I'm betting it doesn't.
Retain counts are none of your business, as is repeated almost daily on this list. Don't peek at them, infer nothing from them. Follow the ownership rules, and you'll be fine.
You can perform clean-up when the object is deallocated (NOT released, that's absolutely not the same thing - performing clean-up at release time is a sure route to disaster) by overriding -dealloc.
--Graham
On 19/07/2011, at 12:17 AM, Ryan Joseph wrote:
> I wonder why Cocoa has retained it 4 times and what it plans to do with it since I don't see thing that will cause the memory to be released.
_______________________________________________
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