• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSTextField : what's happening when the undo command is used ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Cocoa view overlap issue in Logic Express 7.1.1 and Logic Pro 7.2.3
  • Next by Date: Re: Check font is installed
  • Previous by thread: Re: Check font is installed
  • Next by thread: Change titlecolor from NSWindow
  • Index(es):
    • Date
    • Thread