• 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
Bindings with NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings with NSTableView


  • Subject: Bindings with NSTableView
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Mon, 21 Jun 2004 14:16:04 +0200

I have an NSTableView which has two columns "Name" and "Size".

The value of the Name-column is bound to myArrayController; Controller Key ="arrangedObjects" Model Key Path = "Name".
Other column similar;

myArrayController has contentArray bound to myObjectController; Controller Key = "selection", Model Key Path = "myArray".

myObjectController has Outlet "content" connected to File's Owner, which has an NSArray called "myArray", which contains NSDictionaries, which have keys "Name" and "Size".

Everything displays fine.

But I also have a variable called "nameOfCurrentlySelectedRow" which should contain the "Name" of the selected row in my NSTableView (no multiple selection) or nil, if nothing is selected.

But I am absolutely clueless how to bind this to whatever.

Or, if this cannot be done, how do I get this? The table view can give me the index of the selectedRow, but the table could be sorted in different ways, so this does not help very much.

Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: A strange constructor question
  • Next by Date: Computed Columns in NSTableView
  • Previous by thread: NSBrowser smudged quotes and inter-row dots
  • Next by thread: Computed Columns in NSTableView
  • Index(es):
    • Date
    • Thread