• 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
number box class from NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: number box class from NSTextField
      • From: Graham Cox <email@hidden>
  • Prev by Date: Opinion on managed memory and garbage collection
  • Next by Date: Re: Amount of Arguments per Method
  • Previous by thread: Re: Opinion on managed memory and garbage collection
  • Next by thread: Re: number box class from NSTextField
  • Index(es):
    • Date
    • Thread