Was: Re: NSStepper - useless?
Was: Re: NSStepper - useless?
- Subject: Was: Re: NSStepper - useless?
- From: William Squires <email@hidden>
- Date: Thu, 23 Feb 2012 08:16:28 -0600
From what I've read, the NSStepper has a bug (though practically, you'll never see it); if one were to click the up or down arrow on the control 2^32 times (assuming it's value is a 4-byte signed int,and is initialized to 0), it would wrap around (or raise an exception for integer overflow). Probably not what the user had in mind! Why didn't they just make the NSStepper a custom view that draws two arrows, and has two sent actions that you can connect? Or even a variation of NSMatrix with two button cells that look like arrows. That would avoid the problem entirely, and be more intuitive to use.
_______________________________________________
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