Skip navigation.
 
mlSubstitute a check box or a popup for as a field editor in a tableview
FROM : comcast
DATE : Sat Jan 19 15:11:08 2008

I am porting a MacApp program to cocoa. I have hit a road block.  I 
have created a Tableview of text fields that I work fine. I need a 
Tableview as the items and their type are not always the same and are 
specified by data. Hence I can not just define the fields in IB. Their 
value can always be shown as text, but this is not always the best way 
to edit them.  Some of the items in the Tableview are Booleans and 
some are a selection from a standard lists. The behavior I had in 
MacApp was, when the user clicks on one of these fields an appropriate 
field editor appears in the field. If it is a normal text field the 
regular text fieldeditior is fine.  With either the Booleans or the 
Lists, a check box or a pop-up to edit the field is shown as the field 
editor. When the user hits Enter, the appropriate Boolean value or 
associated PopUp-text value is shown in the tableview field.

I have been reading about use of windowWillReturnFieldEditor but this 
seems to want a NSTextView as the editor.  I want to provide some form 
of button. Any help on an approach would be appreciated. Thanks

Related mailsAuthorDate
mlSubstitute a check box or a popup for as a field editor in a tableview comcast Jan 19, 15:11
mlRe: Substitute a check box or a popup for as a field editor in a tableview Kyle Sluder Jan 19, 15:56
mlRe: Substitute a check box or a popup for a field editor in a tableview comcast Jan 19, 18:46
mlRe: Substitute a check box or a popup for a field editor in a tableview Kyle Sluder Jan 19, 18:51