Re: Adding items to NSMutableDictionary
Re: Adding items to NSMutableDictionary
- Subject: Re: Adding items to NSMutableDictionary
- From: j o a r <email@hidden>
- Date: Wed, 29 Jun 2005 20:25:08 +0200
You're just using the wrong setter method. You should be using "-
[NSMutableDictionary setObject:forKey:]"
j o a r
On 29 jun 2005, at 20.21, Nik Bauman wrote:
Okay, this is probably very very simple, but for some reason I
can't figure out how to add an entry into a dictionary with any
data type other than an NSString. I assume that every data type
available in the Property List Editor (string, dictionary, array,
number, boolean, date) is supported but Every time I have a value
in number or boolean form and use code like this :
NSMutableDictionary *properties = [[NSMutableDictionary alloc] init];
[properties setValue:[NSNumber numberWithInt: integer ]
forKey:@"word"];
it never send the right value. The only thing I'm ever successful
at is using NSStrings.
How can I input other (I assume supported) data types into
dictionaries?
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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