Re: NSTableViewBindig inversing rows and columns ?
Re: NSTableViewBindig inversing rows and columns ?
- Subject: Re: NSTableViewBindig inversing rows and columns ?
- From: Dustin Voss <email@hidden>
- Date: Wed, 19 May 2004 11:58:32 -0700
On 19 May, 2004, at 6:14 AM, Herve Bouvier wrote:
Hello Gurus!
Is there a way to Bind, in a single NSTableView, multiple Arrays (with
the same number of ordered objects), one Array for each TableColumn ?
For example, sometimes it's Useful to use the first column to display
row's labels (in addition or instead of Columns headers)
but if i use an array of labels for the first column and an array of
value object for the second column, how do i set bindings ?
You can bind to an NSTableColumn directly. They have a "value" binding.
Sorting the columns might be a bit tricky, though.
If you need sorting, and it doesn't work, I suppose you'll have to make
a pseudo-array class that returns an NSDictionary with the label and
data for an index.
_______________________________________________
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.