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 <valbin...@gmail.com> 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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to