Re: SelectedRowIndexes
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