Re: DoubleClick and Bindings in an NSTableView (Pre 10.4)
Re: DoubleClick and Bindings in an NSTableView (Pre 10.4)
- Subject: Re: DoubleClick and Bindings in an NSTableView (Pre 10.4)
- From: Josh Burnett <email@hidden>
- Date: Mon, 24 Oct 2005 18:16:40 -0400
I use [NSArrayController selectedObjects] and just grab the first (and
only) item out of the array. Here's how I do it right now:
NSArrayController* tableController = [sender contentController];
id currentObject = [[tableController selectedObjects] objectAtIndex:0];
Sure, you're using the NSArrayController, but you're asking it which
one is actually being selected, not just matching the table's selected
row with an object in the array returned by arrangedObjects.
JoshB
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden