• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Is it possible to traverse dictionaries and arrays using KVC?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: Is it possible to traverse dictionaries and arrays using KVC? (From: Thorsten Hohage <email@hidden>)

  • Prev by Date: Re: Revert Camera Image
  • Next by Date: Re: clipping and scrolling
  • Previous by thread: Re: Is it possible to traverse dictionaries and arrays using KVC?
  • Next by thread: Core Data to many relationship deletion causing exception
  • Index(es):
    • Date
    • Thread