Re: Is it possible to traverse dictionaries and arrays using KVC?
Re: Is it possible to traverse dictionaries and arrays using KVC?
- Subject: Re: Is it possible to traverse dictionaries and arrays using KVC?
- From: Andy Lee <email@hidden>
- Date: Tue, 16 Aug 2011 18:54:36 -0400
On Aug 16, 2011, at 6:16 PM, Thorsten Hohage wrote:
> NSArray *keyArray = [key componentsSeparatedByString:@"#"];
>
> NSString *arrayKey = [keyArray objectAtIndex:0];
> NSString *pathKey = [keyArray objectAtIndex:1];
>
> arrayKey = [arrayKey stringByReplacingOccurrencesOfString:@"#" withString:@""];
A small observation: you don't need this last line, because there is no way arrayKey can contain "#".
--Andy
_______________________________________________
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