• 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: controlTextDidChange, backspace possible?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: controlTextDidChange, backspace possible?


  • Subject: Re: controlTextDidChange, backspace possible?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Tue, 14 Sep 2004 23:41:23 +0200

At 11:27 Uhr -0700 14.09.2004, Daniel Todd Currie wrote:
Isn't this what we are looking for, a way to validate the user's input? I posted an NSFormatter subclass about a month ago, here's a link in the archives:

http://www.cocoabuilder.com/archive/message/2004/8/11/114277

Just a question on that code: Shouldn't stringForObjectValue: return [anObject stringValue] or [NSString stringWithFormat: @"%@", anObject] instead of nil? That way, if someone assigned an NSNumber to the object, it would accept it gracefully.


BTW -- are you the same person who wrote the CocoaHotKeys3 source code? I was wondering where that had disappeared to, since it's really neat and useful. That author also used "PT" as his prefix. (but then again, the first time I saw UnitKit I also had to fight the thought: "Weird, I don't remember writing that code...")
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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
References: 
 >Re: controlTextDidChange, backspace possible? (From: "Peter Karlsson" <email@hidden>)
 >Re: controlTextDidChange, backspace possible? (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: Re: controlTextDidChange, backspace possible?
  • Next by Date: Re: XCode Unknown class
  • Previous by thread: Re: controlTextDidChange, backspace possible?
  • Next by thread: Re: controlTextDidChange, backspace possible?
  • Index(es):
    • Date
    • Thread