Am Sa,30.08.2008 um 16:58 schrieb <[EMAIL PROTECTED]> <[EMAIL PROTECTED] >:

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 (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/negm-awad%40cocoading.de

This email sent to [EMAIL PROTECTED]

Amin Negm-Awad
[EMAIL PROTECTED]




_______________________________________________

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 [EMAIL PROTECTED]

Reply via email to