• 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
Re: NSCombobox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCombobox


  • Subject: Re: NSCombobox
  • From: Yves Custeau <email@hidden>
  • Date: Wed, 16 Jun 2004 09:18:32 -0400

The problem is that in Cocoa it seems that the NSComboBox can hold only one
value, the data you insert in the list. Also it will only return the value
selected in the list, I haven't found a way to return an "associated value"
to the selected value.

Bi-dimensional Array:
1 | Tony
2 | David
3 | Henry

Displays: Tony
Returns:  1 (when selected)




> From: Ray Ackland <email@hidden>
> Date: Wed, 16 Jun 2004 13:38:59 +1200
> To: Yves Custeau <email@hidden>
> Cc: WebObjects Developer <email@hidden>
> Subject: Re: NSCombobox
>
> Yves,
>
> I'd suggest having an attribute that combines the code with the
> description. Use this for the string value in the box, and then use
> just the code attribute from the returned Entity.
>
> r.
>
> On 16/06/2004, at 9:09, Yves Custeau wrote:
>
>> Using EOF, is there an easy way to populate a ComboBox with two values
>> (e.g.
>> Client# and ClientName) but retrieve only Client# to populate the
>> Client#
>> field in a foreign table?
>>
>>
>> 101 - Good Company Inc.
>>
>> in the ComboBox
>>
>> but I need only to store 101 in the order database.
>>
>> I can do it programmatically bypassing EOF but I then lack all the
>> benefits
>> of using EOF to populate/retrieve data in/from the ComboBox.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Time out issue
      • From: john XUE <email@hidden>
    • SSL and image URL's, split installs etc.
      • From: David Griffith <email@hidden>
References: 
 >Re: NSCombobox (From: Ray Ackland <email@hidden>)

  • Prev by Date: Re: validate the uniqueness of data first before inserting
  • Next by Date: SSL and image URL's, split installs etc.
  • Previous by thread: Re: NSCombobox
  • Next by thread: SSL and image URL's, split installs etc.
  • Index(es):
    • Date
    • Thread