• 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: get the selection in an NSOutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: get the selection in an NSOutlineView


  • Subject: Re: get the selection in an NSOutlineView
  • From: Rua Haszard Morris <email@hidden>
  • Date: Thu, 10 Jun 2010 09:58:09 +1200

Thanks all, itemForRow was the missing piece of the puzzle. Now this thing makes sense..

>> At the time you call -selectedRowIndexes, you should then extract the items corresponding to those indexes from your data model (e.g. using [NSArray objectsAtIndexes:]) before the user has a chance to change the arrangement.
>
> Actually I just call -itemForRow: to convert each row index to an object. That way the code for that isn’t dependent on how my data source works.

_______________________________________________

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: 
 >get the selection in an NSOutlineView (From: Rua Haszard Morris <email@hidden>)
 >Re: get the selection in an NSOutlineView (From: Graham Cox <email@hidden>)
 >Re: get the selection in an NSOutlineView (From: Jens Alfke <email@hidden>)

  • Prev by Date: Re: Question about scaling text within a subView
  • Next by Date: Re: Adding objects from one array to another and and Key Value Observing
  • Previous by thread: Re: get the selection in an NSOutlineView
  • Next by thread: Invalid exception being thrown: CIUnsharpMask is not kvc for the key inputIntensity - except that it is
  • Index(es):
    • Date
    • Thread