Re: Cocoa binding question
Re: Cocoa binding question
- Subject: Re: Cocoa binding question
- From: Dominic Germain <email@hidden>
- Date: Tue, 31 May 2005 09:21:58 -0400
If I use the selecteValue field, the menu will try to use the value
displayed "on" it instead of and id_detail...
I don't want to display id's in a popup, this is not user friendly ;-)
selectedTag ___works exactly as expected___ if I build the content of
my PopUpMenu by hand (using _only_ seletedTag binding with NO content
binding)
The only thing I want to know is how can I get tags loaded in menu
items when using binding for the popupcontent.
thanks
Dominic Germain
---------------------------------------------
Administrateur réseau / Network administrator
Internet Galilée
www.sogetel.net
email@hidden
On 05-05-31, at 00:32, mmalcolm crawford wrote:
On May 30, 2005, at 7:28 PM, Dominic Germain wrote:
When I try to build a TableView for "mastertable", I try to use a
NSPopUpButtonCell for the id_detail column. I set my "content" to
the array matching detailTable, I set the "contentValue" to
"somefield1". A this point, everything is OK... The Popup lists
the expected data. Since I don't want to link my tables using an
object address (this is not usefull for saving in MySQL) and I
don't want to show the field I want to save, I decide to use the
selectedTag way... So I bind my selectedTag to id_detail... But
there is a problem... The value of the Tag for each menu item is a
self assign zero starting number.
The class I use in my arrays is a home-made class that implement -
tag and -setTag and my tags are not loaded by cocoa binding when
building PopUpButton...
Before going into too much detail, it's not clear why you're trying
to use the selectedTag binding? The tag is the tag of the
NSMenuItem. I suspect you want selectedValue?
mmalc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40sogetel.com
This email sent to email@hidden
_______________________________________________
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