Re: NSArrayController & NSTreeController default sort order
Re: NSArrayController & NSTreeController default sort order
- Subject: Re: NSArrayController & NSTreeController default sort order
- From: "I. Savant" <email@hidden>
- Date: Tue, 22 Jan 2008 14:06:29 -0500
> > How do I set up the bindings correct
> > so my controllers fetch the data pre-sorted?
>
> Subclass your controller and override -arrangeObjects:.
Um ... or, you could use the controller's -setSortDescriptors:
method or its sortDescriptors binding since they're there for just
that purpose.
--
I.S.
_______________________________________________
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