Re: NSNumberFormattter not working
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