NSTextField : what's happening when the undo command is used ?

  • Hi List,

    I have created a subclass of NSTextField which is able to resize
    dynamically when its content changes. It works like a charm in nearly
    every situations. The problem is that when I bind its value to an
    "undoable" property of a controller (let's say, the property of a
    managed object), when I validate the field and then use the undo
    command, it is not resized properly : it keeps the size of the
    previous string, just as if it was not changed by the undo command.

    I can't figure which method of NSTextField is called when the undo
    command is used. I've already subclassed setObjectValue and
    textDidChange for the resizing process but they are not called when
    the undo command is used.

    Any idea ?

    Eric.
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today