• 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: DoubleClick and Bindings in an NSTableView (Pre 10.4)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: DoubleClick and Bindings in an NSTableView (Pre 10.4)
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: Combo box in a drawer?
  • Next by Date: SyncServices build issue
  • Previous by thread: DoubleClick and Bindings in an NSTableView (Pre 10.4)
  • Next by thread: Re: DoubleClick and Bindings in an NSTableView (Pre 10.4)
  • Index(es):
    • Date
    • Thread