NSTextField : what's happening when the undo command is used ?
NSTextField : what's happening when the undo command is used ?
- Subject: NSTextField : what's happening when the undo command is used ?
- From: Eric Morand <email@hidden>
- Date: Mon, 2 Oct 2006 21:36:05 +0200
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.
_______________________________________________
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