Re: nsformatters and focus
Re: nsformatters and focus
- Subject: Re: nsformatters and focus
- From: Jonathan Jackel <email@hidden>
- Date: Wed, 19 Feb 2003 23:42:13 -0500
Take a look at NSFormatter's isPartialStringValid... methods. You'll
want to override to return NO when the user has not yet typed a good
entry. IIRC, the user cannot leave the field until the formatter
validates the entry.
Jonathan
On Wednesday, February 19, 2003, at 08:19 PM, Francisco Tolmasky wrote:
With Cocoa Frameworks formatters (such as date, number, etc.) you are
NOT allowed to leave focus if certain requirements are not met. In my
formatter, I'd like it to not allow the user to to leave focus unless
there is input, for example if he deletes all of "9999" to "", id like
it to force him to input something. How do I do this? (Hopefully
this can be done through the formatter and not through the
nstextfieldcell)
Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.