Re: KVC and "@" as key
Re: KVC and "@" as key
- Subject: Re: KVC and "@" as key
- From: Micha Fuhrmann <email@hidden>
- Date: Wed, 15 Apr 2009 14:31:10 +0800
Thanks, that worked great.
On 15 avr. 09, at 12:39, Jeremy W. Sherman wrote:
Hi Micha,
-[NSDictionary objectForKey:] has no such problems. You can use that
to grab the values of keys beginning with an at sign instead of
-valueForKey:.
—Jeremy
On Wed, Apr 15, 2009 at 12:19 AM, Micha Fuhrmann <email@hidden>
wrote:
Hi there,
I'm bumping against KVC, indirectly. I've got a dictionary with first
character keys, each object of the key is an Array with objects. So
key "b"
of my Dictionary is an array with file objects' name starting with
the
letter "b".
The problem comes up when users have file names starting with the
character
"@".
I'm calling [nameIndexesDictionary @"@"] and getting
[<NSCFDictionary 0x2729830> valueForUndefinedKey:]: this class is
not key
value coding-compliant for the key .'
What can I do about it? Any help appreciated.
_______________________________________________
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
_______________________________________________
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