Re: Programmatically selecting column header cell and triggering a sort
Re: Programmatically selecting column header cell and triggering a sort
- Subject: Re: Programmatically selecting column header cell and triggering a sort
- From: mmalc crawford <email@hidden>
- Date: Sun, 19 Aug 2007 23:23:17 -0700
On Aug 19, 2007, at 10:48 PM, Alex Reynolds wrote:
I then, instead, tried to bind the "sortDescriptors" binding in the
NSTableView to a NSArray object ("sortDescriptors") instantiated in
my AppController:
mySorter = [[NSSortDescriptor alloc] initWithKey:@"myKey"
ascending:YES];
sortDescriptors = [NSArray arrayWithObjects: mySorter];
[mySorter release];
This, unfortunately, prevents the data connected to myTableView from
being displayed.
Normally the 'content', 'sortDescriptors', and 'selectionIndexes' are
established automatically when you set up the table columns. If you
bind any of these independently, you must bind them all...
<http://homepage.mac.com/mmalc/CocoaExamples/controllers.html>
mmalc
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden