• 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: setPrimitiveValue:forKey: question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: setPrimitiveValue:forKey: question


  • Subject: Re: setPrimitiveValue:forKey: question
  • From: Chris Hanson <email@hidden>
  • Date: Wed, 2 Nov 2005 18:33:01 -0800

On Nov 2, 2005, at 6:11 PM, Reaves Timothy wrote:
Does this method retain value & key?

Why do you ask? That is, what are you really trying to accomplish that you might find this knowledge useful?


Speaking generally about Cocoa, if object C passes object B to object A, and A needs to keep track of B for whatever reason -- whether to return it later, to make use of it internally, etc. -- A will retain or copy B as appropriate. It should not be any concern of C that this is taking place.

This is critical to understanding Cocoa's model of object ownership.

  -- Chris

_______________________________________________
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: 
 >setPrimitiveValue:forKey: question (From: Reaves Timothy <email@hidden>)

  • Prev by Date: Re: Two threads two autorelease pools one object?
  • Next by Date: Re: QTMovie initWithFile
  • Previous by thread: setPrimitiveValue:forKey: question
  • Next by thread: OmniInspector questions
  • Index(es):
    • Date
    • Thread