• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Please help. At wit's end binding NSPopupButtonCell selection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Please help. At wit's end binding NSPopupButtonCell selection (From: Ken Tozier <email@hidden>)
 >Re: Please help. At wit's end binding NSPopupButtonCell selection (From: Cathy Shive <email@hidden>)
 >Re: Please help. At wit's end binding NSPopupButtonCell selection (From: Ken Tozier <email@hidden>)
 >Re: Please help. At wit's end binding NSPopupButtonCell selection (From: Cathy Shive <email@hidden>)
 >Re: Please help. At wit's end binding NSPopupButtonCell selection (From: Ken Tozier <email@hidden>)
 >Re: Please help. At wit's end binding NSPopupButtonCell selection (From: Cathy Shive <email@hidden>)

  • Prev by Date: Re: pragma mark Queston
  • Next by Date: Re: Get MD5 without crashing
  • Previous by thread: Re: Please help. At wit's end binding NSPopupButtonCell selection
  • Next by thread: Use named constants, not literal strings (was Re: Please help. At wit's end binding NSPopupButtonCell selection)
  • Index(es):
    • Date
    • Thread