Re: NSMutableDictionary won't accept my NSString as Value (NEWBIE)
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