• 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: container retain/release problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: container retain/release problem


  • Subject: Re: container retain/release problem
  • From: Paul Forgey <email@hidden>
  • Date: Thu, 10 Feb 2005 14:54:17 -0800

Crap.. I overloaded [release], not [dealloc] in the class containing the array in question, with obvious results now that I see what I did. I do know better, but obviously I haven't been writing Cocoa code long enough to catch stupid things like this or not accidentally do them in the first place :).

Sorry about that. But it is good to know the release/retain mechanism works in containers the way I'd expect it to.

On Feb 10, 2005, at 2:36 PM, email@hidden wrote:

If you have -retain'd the array that is contained within the dictionary then, yes, that array will continue to exist after the dictionary has been deallocated (-release'd completely -- never invoke -dealloc directly). If it isn't, then you are either over -release'ing it or you never -retain'd it in the first place.


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >RE: container retain/release problem (From: "Jonathan E. Jackel" <email@hidden>)
 >Re: container retain/release problem (From: Paul Forgey <email@hidden>)
 >Re: container retain/release problem (From: email@hidden)

  • Prev by Date: Re: Creating the illusion of a full featured window
  • Next by Date: License server
  • Previous by thread: Re: container retain/release problem
  • Next by thread: NSTextView scrolling behavior
  • Index(es):
    • Date
    • Thread