Re: pointer address changes for no reason
Re: pointer address changes for no reason
- Subject: Re: pointer address changes for no reason
- From: Scott Ribe <email@hidden>
- Date: Wed, 11 Apr 2007 10:07:36 -0600
- Thread-topic: pointer address changes for no reason
> ...I don't need to retain it anywhere in my
> code, I just
> need to release it in the dealloc method.
If you don't retain it, then you shouldn't release it--if super retains it
during allocation, then super will release it during deallocation. If
elsewhere in your code you're releasing controls instantiated with nibs,
that could be causing all sorts of memory corruption. Of course I'm taking
what you wrote literally, assuming that you didn't mean "I don't need to
retain it anywhere in my code other than initialization".
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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