• 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
help with binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with binding


  • Subject: help with binding
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 23 Sep 2004 07:24:14 -0700 (PDT)

I am rather new to bindings and need a little help.

I have an array set up as:

<key>name
<key>accountcode

I use  this array to bind to a popup. I have the name
key bound to the popup.


	[employeePopUpController bind:@"contentArray"
toObject: self
withKeyPath:@"employeeArrayListForPopUp" options:nil];

	[ejsEmployeePopUp bind:@"content" toObject:
employeePopUpController withKeyPath:@"arrangedObjects"
options:nil];
	[ejsEmployeePopUp bind:@"contentValues"
toObject:employeePopUpController
withKeyPath:@"arrangedObjects.ename" options:nil];
	[ejsEmployeePopUp bind:@"selectedObject"
toObject:ejsMainArrayController
withKeyPath:@"selection.loggedInByName" options:nil];

This works great..

What I want to do is .... When I select a popup value
I want to bind the accountcode (of the popup array) to

 ejsMainArrayController
withKeyPath:@"selection.loggedInByCode.

This must be doable.

Thanks,

Ted



_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com
 _______________________________________________
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: Safari-like View Change
  • Next by Date: NSButton
  • Previous by thread: Re: NSArrayController One-To-Many Question
  • Next by thread: NSButton
  • Index(es):
    • Date
    • Thread