Re: Cocoa binding question
Re: Cocoa binding question
- Subject: Re: Cocoa binding question
- From: mmalcolm crawford <email@hidden>
- Date: Mon, 30 May 2005 21:32:13 -0700
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:
This email sent to email@hidden