• 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: NSMutableDictionary Poitners
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary Poitners


  • Subject: Re: NSMutableDictionary Poitners
  • From: Clark Cox <email@hidden>
  • Date: Thu, 30 Jul 2009 22:07:07 -0700

On Thu, Jul 30, 2009 at 10:06 PM, Clark Cox<email@hidden> wrote:
> On Thu, Jul 30, 2009 at 10:18 AM, DerNalia<email@hidden> wrote:
>> If I do something like:
>> varName = [dictionaryName objectForKey:@"keyName"];
>>
>> does that return a copy of what is in the dictionary?
>
> No.
>
>> or a pointer?


That should have been:

> All objects are passed as pointers
>
> This method follows the normal Cocoa memory management rules. The object did
> not come from an alloc..., copy... or new... method, and you didn't
> retain it yourself, so you do not own a reference to it. If you want
> it to stick around longer than the dictionary itself, it's up to you
> to either make a copy
>
>
> --
> Clark S. Cox III
> email@hidden
>



--
Clark S. Cox III
email@hidden
_______________________________________________

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

  • Follow-Ups:
    • Re: NSMutableDictionary Poitners
      • From: DerNalia <email@hidden>
References: 
 >NSMutableDictionary Poitners (From: DerNalia <email@hidden>)
 >Re: NSMutableDictionary Poitners (From: Clark Cox <email@hidden>)

  • Prev by Date: Re: NSMutableDictionary Poitners
  • Next by Date: NSURL fileURLWithPath doesn't produce a valid URL
  • Previous by thread: Re: NSMutableDictionary Poitners
  • Next by thread: Re: NSMutableDictionary Poitners
  • Index(es):
    • Date
    • Thread