• 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
Howto access model element from NSTableView selection ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Howto access model element from NSTableView selection ?


  • Subject: Howto access model element from NSTableView selection ?
  • From: Pierre CHATEL <email@hidden>
  • Date: Mon, 8 May 2006 01:13:49 +0200

Hi List,

i have an application with an NSTableView displaying the content of an already existing array. I'm using an NSArrayController and bindings to fill the columns of my tableview.

When i sort the content of the tableView by clicking on a column title, only the view is sorted, not the content of the array... which is great from an MVC standpoint.

But how do i know which element of the array is selected when the user of my application double-click on a row of the tableview ?
I can't rely on the click index since the view has been sorted but not the model array.
Is there a way to access the displayed value of a row in a column without using the view's dataSource ?



Thanks ! Pierre _______________________________________________ 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
  • Prev by Date: NSManagedObject: Best place to start observing SELF
  • Next by Date: Implementing control with multiple cells
  • Previous by thread: NSManagedObject: Best place to start observing SELF
  • Next by thread: Re: Howto access model element from NSTableView selection ?
  • Index(es):
    • Date
    • Thread