• 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: What's the Real Story on Keys for NSDictionary
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What's the Real Story on Keys for NSDictionary


  • Subject: Re: What's the Real Story on Keys for NSDictionary
  • From: Chris Gehlker <email@hidden>
  • Date: Mon, 28 Jan 2002 13:46:32 -0700

On 1/28/02 1:02 PM, "Douglas Davidson" <email@hidden> wrote:

> On Monday, January 28, 2002, at 10:21 AM, Chris Gehlker wrote:
>
>> The docs say that any class that implements NSCopying can provide keys
>> for
>> NSDictionary. Hillegass says the keys must be NSString. I've had bad
>> luck
>> with anything that should work, like NSNumber. So are they docs just
>> wrong
>> here?
>
> If you wish a dictionary to be a property list, or part of a property
> list, then the keys must be strings.

Bingo! That's exactly what I was trying to do.

> If you wish to have more precise control over the handling of keys, you
> can use a CFDictionary, which has several sets of callbacks defining
> different policies, and allows you to write your own if you wish.
Great tip. Thanks.

--
Some people say Windows users have an inferiority complex.
That's not true. It's not a complex.


References: 
 >Re: What's the Real Story on Keys for NSDictionary (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Customize Login Manager?
  • Next by Date: Re: Icelandic localisation
  • Previous by thread: Re: What's the Real Story on Keys for NSDictionary
  • Next by thread: Re: What's the Real Story on Keys for NSDictionary
  • Index(es):
    • Date
    • Thread