Re: NSCombobox
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.