Mantis - tweak
Viewing Issue Advanced Details
138 minor always 09-09-04 00:27 04-29-05 04:59
tedka  
 
normal  
resolved  
fixed  
none    
none  
0000138: addField menu item breaks in a CBrowser
Choose addField in the class category of a Browser, name the new field, and enter. Brings up an error window.
The problem is in the #addField method. These two lines need to be removed:
    aClass fieldNames: (aClass fieldNames,' ', fieldName).
    aClass compilePropertyFor: fieldName defaultValue: nil.

and something like this needs to be added:
    fieldDef _ CFieldDefinition new.
    "fill in fieldDef's inst vars from info already in this method"
     ...
    aClass addField: fieldDef defaultValue: nil.

(With some encouragement, I would finish this, but I might mess it up. --Ted.)

Notes
(0001450)
andreas   
04-29-05 04:59   
No longer applicable.