• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pointer address changes for no reason
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: pointer address changes for no reason
      • From: "Ewan Delanoy" <email@hidden>
References: 
 >Re: pointer address changes for no reason (From: "Ewan Delanoy" <email@hidden>)

  • Prev by Date: [JOB] Cocoa Developer, Madison WI
  • Next by Date: Resizing NSView with handles
  • Previous by thread: Re: pointer address changes for no reason
  • Next by thread: Re: pointer address changes for no reason
  • Index(es):
    • Date
    • Thread