• 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
accessing values along NSIndexPath
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

accessing values along NSIndexPath


  • Subject: accessing values along NSIndexPath
  • From: Torsten Curdt <email@hidden>
  • Date: Wed, 26 Mar 2014 20:02:56 +0100

The Apple docs state:

"The NSIndexPath class represents the path to a specific node in a
tree of nested array collections"

I can't find how to use the index path to access the tree though.
It should be something along the lines of:

  NSIndexPath *indexPath = ...
  NSArray *nestedArrays = ...
  id obj = [nestedArrays objectByIndexPath:indexPath];

but I just cannot seem to find the right selector for this.

I could easily implement this myself - but there must be something
like this already!? No?

cheers,
Torsten
_______________________________________________

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


  • Follow-Ups:
    • Re: accessing values along NSIndexPath
      • From: Lee Ann Rucker <email@hidden>
  • Prev by Date: Re: NSInteger/NSUInteger Considerations (64 bit)
  • Next by Date: Re: accessing values along NSIndexPath
  • Previous by thread: Re: Get session key from SSL/TLS connection using NSStream
  • Next by thread: Re: accessing values along NSIndexPath
  • Index(es):
    • Date
    • Thread