• 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
NSFormatter usage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSFormatter usage


  • Subject: NSFormatter usage
  • From: Dev WO <email@hidden>
  • Date: Wed, 8 Feb 2006 19:00:18 +0100

Hi guys,
I'm trying to read as much as I can before posting, but sometimes I just can't find what I'm looking for...
So actually I'm wondering if I could use NSFormatter on a WOTextField to apply certain rules:
let's say I have a WOTextField for the user to enter his email. I want to make sure it will be lowercase (just an example). Assuming I already have in my code a method that take a string as an argument and return it lowercased, how I would "create" the correct NSFormatter?


I'm asking this because the other way I can think of is to create an instance variable to store the email entered, then pass this object to my toLowerCase method and finally call the setEmail method.
Which is of course not that funny;)


So I was wondering if I could call my toLowerCase method using a NSFormatter.

toLowerCase is of course just to illustrate my meaning;)

In fact, what I'd like to do is to "format" the text input before making any validation on it. I think I could use many stuff to achieve that, and most probably things more advanced/powerful like stuff from Wonder, but I don't feel like I'm ready for it;) still too beginner:)

If someone could give me his opinion, regarding both the NSFormatter part or the "way of thinking";)

Thanks a lot

Xavier
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSFormatter usage
      • From: Arturo Perez <email@hidden>
    • Re: NSFormatter usage
      • From: Chuck Hill <email@hidden>
  • Prev by Date: XCode Expressions during debugging
  • Next by Date: Re: NSFormatter usage
  • Previous by thread: Re: WebObjects licensing still unclear / XCode 2.1 no longer available ?
  • Next by thread: Re: NSFormatter usage
  • Index(es):
    • Date
    • Thread