• 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
NSArrayController hierarchy binding in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSArrayController hierarchy binding in IB


  • Subject: NSArrayController hierarchy binding in IB
  • From: Yann Bizeul <email@hidden>
  • Date: Thu, 11 May 2006 10:17:20 +0200

Hello list.

Now I'm converted to the bindings mechanism power, I'd like to make the following.
Say a NSArrayController subclass MyArrayController, it has two "children" NSArrayController as instance variable called property1ArrayController and property2ArrayController.


I'd like to put all that in IB so that I can connect my "+" and "-" buttons to each of this controllers.

So I make a new NSArrayController in IB, set its class to MyArrayController.
I make two other NSArrayControllers (MyProperty1ArrayController, MyProperty2ArrayController), and bind their "contentObject" to MyArrayController > selection > property1ArrayController and MyArrayController > selection > property2ArrayController.


Then I bind my NSTableColumn to MyProperty1ArrayController > selection > attribute1

	Guess what ? It does not work. all I get in the console is :

[<NSArrayController 0x3b65c0> valueForUndefinedKey:]: this class is not key value coding-compliant for the key attribute1.

Why is it calling the attribute1 key on NSArrayController instead of ".selection" as I said in my NSTableColumn binding ?

Yann Bizeul • yann at tynsoe.org
Cocoa Developer

Tynsoe Projects
BuddyPop • GeekTool • SSH Tunnel Manager • ...
http://projects.tynsoe.org/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Prev by Date: Re: Problem creating binding for deployment
  • Next by Date: How to receive events fro NSColorWell
  • Previous by thread: Re: Objective-C Framework for XML-RPC
  • Next by thread: How to receive events fro NSColorWell
  • Index(es):
    • Date
    • Thread