number box class from NSTextField
number box class from NSTextField
- Subject: number box class from NSTextField
- From: Stephen Blinkhorn <email@hidden>
- Date: Mon, 22 Jun 2009 09:02:22 -0600
Morning Cocoa-Dev,
I need a scrolling number box type object for my GUI. At the moment I
am subclassing NSTextField and overriding mouse and scroll wheel
events so a user can drag the numeric value up/down. This seems a bit
clumsy somehow.
Perhaps a better idea would be a custom view that sits invisibly above
an NSTextField taking mouse events and passing the numeric value to
the text field via setFloatValue messages.
Any comments? I'm sure a few people must have made something similar
- I'm surprised there isn't a standard Cocoa object like this already.
Thanks,
Stephen
_______________________________________________
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