Re: How to force an initial column sort with NSTableView and controller?
Re: How to force an initial column sort with NSTableView and controller?
- Subject: Re: How to force an initial column sort with NSTableView and controller?
- From: Alexander Lamb <email@hidden>
- Date: Thu, 22 Jun 2006 15:53:31 +0200
I actually use this (from IB), the problem is not the sorting which
works fine, the problem is to trigger the sort automatically when the
table is loaded (and show the sort triangle in the correct column).
Somehow a function which would say:
- setSortsAutomaticallyOnLoadOnColumnWithIdentifier:@"name"
Alex
--
Alexander Lamb
email@hidden
On Jun 22, 2006, at 2:15 PM, I. Savant wrote:
Check out the documentation for NSTableColumn. Specifically: -
setSortDescriptorPrototype: ...
--
I.S.
On Jun 22, 2006, at 5:18 AM, Alexander Lamb wrote:
Hello list,
I have a core data application.
I would like to force the sort on a given column when the data is
loaded in my NSArrayController and displayed in the NSTableView.
Sorting works fine manually (e.g. when clicking on the column
header) so I would like to do as if the used had clicked.
I know I can sort programmatically the objects in my controller,
but I want to show the visual feedback of my column with the
little sort triangle.
Thanks,
Alex
--
Alexander Lamb
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com
This email sent to email@hidden
_______________________________________________
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