Re: NSTextField Masking
Re: NSTextField Masking
- Subject: Re: NSTextField Masking
- From: Matt Neuburg <email@hidden>
- Date: Wed, 01 Mar 2006 18:39:35 -0800
- Thread-topic: NSTextField Masking
On Wed, 1 Mar 2006 22:34:36 +0100, Peter Krajcik <email@hidden> said:
>Hi,
>I am looking for the simplest way to implement masking to NSTextField.
>What I need is a mask, that will be attached to the text field.
>Something like this:
>xx:xx:xx
>The client can enter only to xx pairs and only numbers are allowed.
>NSFormater is not a choice I think - I need to filter keystrokes
>before they enter text field.
I suggest you look at NSFormatter again. This time, think about the
isPartialStringValid:... methods. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
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