• 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
How to show last name of user in text field whose first name is selected in popup button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to show last name of user in text field whose first name is selected in popup button


  • Subject: How to show last name of user in text field whose first name is selected in popup button
  • From: Devarshi Kulshreshtha <email@hidden>
  • Date: Fri, 03 Feb 2012 11:20:40 +0530

Hi All,

I have an array of dictionary which contains two keys- firstName
and lastName and their values, eg.

firstName/ lastName

Steve/ Jobs
Andre/ Agassi
Christiano/ Ronaldo

User interface consists of a pop up button and a text field.

I am displaying first name of users in pop up button. I am able to show
first name of the user selected in pop button in the text field by using
following bindings:

NSArrayController

Content Array - AppDelegate - myArray

NSPopUpButton

content - Array Controller - arrangedObjects - firstName
selected value - AppDelegate - selectionValue

NSTextField

Value - AppDelegate - selectionValue

Here myArray is a property declared as NSArray and selectionValue is
a property declared as NSString declared in AppDelegate class.

Now I am getting clue less to implement this through bindings:
Text field should show last name of user whose first name is selected in
pop up button.

Can anyone suggest me some solution to implement it or is it
possible through bindings?

Thanks,
_______________________________________________

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


  • Follow-Ups:
    • Re: How to show last name of user in text field whose first name is selected in popup button
      • From: Keary Suska <email@hidden>
  • Prev by Date: Re: Selected text in NSTextField
  • Next by Date: Re: Re: Multiple Selection in NSComboBoxCell
  • Previous by thread: Re: NSTextView
  • Next by thread: Re: How to show last name of user in text field whose first name is selected in popup button
  • Index(es):
    • Date
    • Thread