• 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: Jens Alfke <email@hidden>
  • Date: Wed, 9 Jun 2010 08:45:01 -0700

On Jun 8, 2010, at 9:40 PM, Graham Cox wrote:

> 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.

—Jens_______________________________________________

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: get the selection in an NSOutlineView
      • From: Rua Haszard Morris <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>)

  • Prev by Date: Re: My Custom Framework Is Not Exporting One of My Header Files
  • Next by Date: Re: Erasing drawn content
  • Previous by thread: Re: get the selection in an NSOutlineView
  • Next by thread: Re: get the selection in an NSOutlineView
  • Index(es):
    • Date
    • Thread