• 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
Re: NSTextField Masking
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: NSBitmapImageRep getPixel and color Spaces
  • Next by Date: Re: Transparent window
  • Previous by thread: NSTextField Masking
  • Next by thread: extending an NSTextView shape
  • Index(es):
    • Date
    • Thread