Re: Please help. At wit's end binding NSPopupButtonCell selection
Re: Please help. At wit's end binding NSPopupButtonCell selection
- Subject: Re: Please help. At wit's end binding NSPopupButtonCell selection
- From: Ken Tozier <email@hidden>
- Date: Tue, 4 Nov 2008 08:20:57 -0500
Success!
Here's the correct incantation
1. bind page controller to page list
[pageController bind: @"contentArray" toObject: inProject
withKeyPath: @"pages" options: nil];
2. bind popup controller to master page list
[popupController bind: @"contentArray" toObject: inProject
withKeyPath: @"masters" options: nil];
3. bind popup column to pageController and popupController
[popupColumn bind: @"content" toObject: popupController withKeyPath:
@"arrangedObjects" options: nil];
[popupColumn bind: @"contentValues" toObject: popupController
withKeyPath: @"arrangedObjects.name" options: nil];
[popupColumn bind: @"selectedValue" toObject: pageController
withKeyPath: @"arrangedObjects.master" options: nil];
Thank you so much Cathy. You're a life saver :)
-Ken
On Nov 4, 2008, at 7:38 AM, Cathy Shive wrote:
It is possible:
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
Look at the "To Dos" example project. Seems like a similar setup:
"Shows two array controllers, one to manage the contents of a table
view, the other to manage a pop-up menu in a table column."
I think this can help you get it working :)
- c
_______________________________________________
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