Re: Creating a Custom Formatter
Re: Creating a Custom Formatter
- Subject: Re: Creating a Custom Formatter
- From: Larry Fransson <email@hidden>
- Date: Sat, 23 Oct 2004 00:09:48 -0700
On Oct 22, 2004, at 12:50, John Spicer wrote:
Has anyone done this, and could they share some code? I'd like my custom formatter to only act when the user presses return or tabs out of the field. I can't find a method to do this.
Is it necessary to set the owning NSTextField to send a message when editing is finished, and therefor the isPartialStringValid:newEditingString:errorDescription: method is only called at this time?
The -isPartialStringValid:newEditingString:errorDescription: method is only used when you want the formatter to act while editing is in progress. If you get rid of it, your formatter should work only once editing is completed.
Larry Fransson
Seattle, WA
_______________________________________________
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