Re: NSDictionary & KVC problem
Re: NSDictionary & KVC problem
- Subject: Re: NSDictionary & KVC problem
- From: Nathan Dumar <email@hidden>
- Date: Mon, 25 Oct 2004 12:32:57 -0400
Pierre & Ben,
Thanks for your patience. This was it. Pierre - Sorry for missing
that point when you wrote it yesterday.
I thought that what I was doing was functionally equivalent, so the
casting was unnecessary. I was wrong.
Thanks again.
Nathan
The critical thing your missing is this:
prefs = new NSDictionary(
(NSArray)thisUser.preferences().valueForKey("value"),
(NSArray)thisUser.preferences().valueForKey("name")
);
Hope that fixes it,
Ben
You forgot to cast the retun value of valueForKey() into an NSArray.
You are thus using the NSDictionary(Object, Object) constructor. Java
is that stupid.
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden