Re: How do I use Sort Descriptor binding in IB on my array controller?
Re: How do I use Sort Descriptor binding in IB on my array controller?
- Subject: Re: How do I use Sort Descriptor binding in IB on my array controller?
- From: Negm-Awad Amin <email@hidden>
- Date: Wed, 3 Sep 2008 15:54:13 +0200
Am Sa,30.08.2008 um 16:58 schrieb <email@hidden> <email@hidden
>:
I'm struggling with this very problem, can anyone point me in the
right
direction?
Many Thanks
Amy
You can do it the way Quincey described, but I think that you do not
need bindings, because your problem sounds statical and a pop up
button is usually sorted by one property. (Okay, you can have a
ascending/descending-change, but this is rare.)
*If* it is statically, there is another solution: Add an outlet to the
controller object (one of these mentioned by quincey) and connect it
to the array controller (ctrl-dragging in IB). Then you can set the
sort desciptors of the array controller in your code using
setSortDescriptors:. The best place depends on the type of the file's
owner. Typically you have a window controller or an view controller
subclass and simply put the code into -awakeFromNib.
Cheers,
Amin
FROM : Rick Mann
DATE : Sun Jun 01 02:52:25 2008
I have an array controller in IB that is used by a popup menu in a
table view column. I would like those menu items to be sorted. Is
there a quick, mostly-IB way to configure that? The presence of a
sort
descriptor binding for the NSArrayController makes me think it should
be pretty straightforward.
TIA,
--
Rick
_______________________________________________
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
Amin Negm-Awad
email@hidden
_______________________________________________
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