• 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: SelectedRowIndexes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SelectedRowIndexes


  • Subject: Re: SelectedRowIndexes
  • From: Kyle Sluder <email@hidden>
  • Date: Wed, 14 Oct 2009 16:54:38 -0700

On Wed, Oct 14, 2009 at 4:45 PM, gMail.com <email@hidden> wrote:
> I need that because the last object selected is the one I represent in the
> Inspector panel (instead of "Multiple Selection" which is not editable). So
> for example the last object selected has coords x = 30 and y = 50
> and I show these coords on the Inspector.

In that case, you will probably be best served by binding your table
view's selectedRowIndexes property to a property on your controller,
and having your controller expose a separate property that your
inspector uses to determine the object to inspect.  You could
implement the set delta KVC methods on your controller properties to
make your life easier.  In the event of multiple things really being
selected at once (think Cmd-A), you will still need to make an
arbitrary choice.

--Kyle Sluder
_______________________________________________

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: SelectedRowIndexes (From: Kyle Sluder <email@hidden>)
 >Re: SelectedRowIndexes (From: "gMail.com" <email@hidden>)

  • Prev by Date: Re: SelectedRowIndexes
  • Next by Date: Can I make custom pasteboard type for an object reference?
  • Previous by thread: Re: SelectedRowIndexes
  • Next by thread: Re: SelectedRowIndexes
  • Index(es):
    • Date
    • Thread