Re: NSDictionary & KVC problem
Re: NSDictionary & KVC problem
- Subject: Re: NSDictionary & KVC problem
- From: Ben Ketteridge <email@hidden>
- Date: Mon, 25 Oct 2004 09:24:17 +0100
On Mon, 25 Oct 2004 09:17:12 +0200, email@hidden
<email@hidden> wrote:
> 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.
>
> All the same you are using the NSArray(Object) constructor rather than the
>NSArry(NSArray) constructor.
Wow! That is a nasty gotcha! That makes so much sense, but I wonder
why I've never come across that before?
Ben.
--
| Ben Ketteridge email@hidden, aka Gremlin |
| It is by caffeine alone that I set my mind in motion. |
| It is by the coffee that the thoughts acquire speed, |
| the lips acquire stains, the stains become a warning. |
| It is by caffeine alone that I set my mind in motion. |
_______________________________________________
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