• 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: NSNumberFormattter not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSNumberFormattter not working


  • Subject: Re: NSNumberFormattter not working
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 12 Jul 2007 20:12:04 +0100

On 12 Jul 2007, at 19:51, Ken Tozier wrote:

On Jul 12, 2007, at 2:34 PM, Alastair Houghton wrote:

On 12 Jul 2007, at 18:58, Ken Tozier wrote:

Here's what I think should happen, as pseudo code, in response to key presses (if NSTextField allowed access to individual keypresses)

- (void) keyDown:(NSEvent *) inEvent

[snip]

For my current app, the number field is just going to be used as a way to allow users to change the page number of a news page so there is no need for cut and paste or drag and drop. That keyDown handler would be perfect for my limited needs.

Except that you'd need a load more code to disable all of the things I mentioned above, since they're all going to work unless you take steps to stop them. The formatter-based approach doesn't suffer from that problem.


Anyway, it sounds like your formatter is just about there, so it's a moot point I guess :-)

Kind regards,

Alastair.

--
http://alastairs-place.net




_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSNumberFormattter not working
      • From: Ken Tozier <email@hidden>
References: 
 >Re: NSNumberFormattter not working (From: Keary Suska <email@hidden>)
 >Re: NSNumberFormattter not working (From: Ken Tozier <email@hidden>)
 >Re: NSNumberFormattter not working (From: Alastair Houghton <email@hidden>)
 >Re: NSNumberFormattter not working (From: Ken Tozier <email@hidden>)

  • Prev by Date: Re: NSNumberFormattter not working
  • Next by Date: Re: NSNumberFormattter not working
  • Previous by thread: Re: NSNumberFormattter not working
  • Next by thread: Re: NSNumberFormattter not working
  • Index(es):
    • Date
    • Thread