• 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 won't accept my NSString as Value (NEWBIE)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary won't accept my NSString as Value (NEWBIE)


  • Subject: Re: NSMutableDictionary won't accept my NSString as Value (NEWBIE)
  • From: "Jonathan del Strother" <email@hidden>
  • Date: Thu, 23 Oct 2008 12:43:13 +0100

On Thu, Oct 23, 2008 at 12:34 PM, Sebastian Pape
<email@hidden> wrote:
> But my NSMutableDictionary won't accept my NSString, because it
> requires setValue:(id)value and I just have my NSString.

'id' is just a generic type - anything that accepts id will accept
NSString, NSObject, NSData, etc.

> XCode gives me a warning about that and GDB sends me a "***
> -[NSCFDictionary setValue:ForKey:]: unrecognized selector sent to
> instance 0x1dd090".

Try a lowercase 'f'  in ForKey.
_______________________________________________

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

References: 
 >NSMutableDictionary won't accept my NSString as Value (NEWBIE) (From: "Sebastian Pape" <email@hidden>)

  • Prev by Date: NSMutableDictionary won't accept my NSString as Value (NEWBIE)
  • Next by Date: Autocomplete from an array of dictionaries
  • Previous by thread: NSMutableDictionary won't accept my NSString as Value (NEWBIE)
  • Next by thread: Autocomplete from an array of dictionaries
  • Index(es):
    • Date
    • Thread