Re: NSTableViewBindig inversing rows and columns ?
Re: NSTableViewBindig inversing rows and columns ?
- Subject: Re: NSTableViewBindig inversing rows and columns ?
- From: Herve Bouvier <email@hidden>
- Date: Wed, 19 May 2004 21:47:13 +0200
Thank you
but i did bind directly, using "[tableColumn bind: @"value" toObject:
arrayController withKeyPath:@"arangedObjects.key" options:
bindingOptions]"
and it seems you're write, Sorting is not so important in this case,
but anyway i have to make a pseudo-array class that returns a fantomtic
NSDictionary.
Hopefully there is a better solution ?
please say me there is one.
regards
Herve
Le 19 mai 04, ` 20:58, Dustin Voss a icrit :
>
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.