entity binding
entity binding
- Subject: entity binding
- From: "Ahmet Taha Sakar" <email@hidden>
- Date: Thu, 22 Mar 2007 13:58:32 -0700
Hello,
I have a question about bindings. I have figured out and got it to work for
array bindings, and changing values by changing the selectionIndex.
However, I have another question. Let's say I have an array of users in a
myplayers class in a AppController. and in myplayers class, there is a
function called currentUser which returns the user who should be active now.
This is what I'm doing, and it doesnt work.
I have created a NSControllerObject in IB. I have created a connection to
AppController for content. Then in NSControllerObject attributes, I have
chosed entitiy, and typed myplayers.currentUser. Then I created a textField
in IB, and created a binding for NSControllerObject.selection.name.
Isnt this suppose to bind the text field to
AppController.myplayers.currentUser.name?
I know I can create an NSControllerArray and bind it to
AppController.myplayers, since they are both arrays, and just change the
selection. But I figured, If I need to access just one at a time, and not
do anything complex then just showing the name, this should be enough too.
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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