NSArrayController hierarchy binding in IB
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