Re: Core DataTableView Column Sort at launch with bindings?
Re: Core DataTableView Column Sort at launch with bindings?
- Subject: Re: Core DataTableView Column Sort at launch with bindings?
- From: vince <email@hidden>
- Date: Mon, 22 Dec 2008 21:50:17 -0500
I got this working:
I placed the following in my windowControllerDidLoadNib method:
NSSortDescriptor * sorter = [[NSSortDescriptor alloc] initWithKey:@"nameColumn"
ascending:YES];
[myArrayController setSortDescriptors:[NSArray arrayWithObject:sorter]];
I set the table sorting properties to:
Ascending
Sort Key: nameColumn
Selector: caseInsensitiveCompare:
Now the column Header is selected when the application starts up and the
nameColumn remains sorted in ascending order.
-v.
On Mon, Dec 22, 2008 at 4:12 PM, vince <email@hidden> wrote:
> Thanks for the help ...
> Is it possible to set up my Core Data doc application's Bindings so that
> upon launch my mainColumn header is selected and the column is pre-sorted
> (ascending) without implementing code?
>
> thanks again.
>
> vince.
>
>
>
>
>
>
_______________________________________________
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