Re: responding to NSStepper clicks
Re: responding to NSStepper clicks
- Subject: Re: responding to NSStepper clicks
- From: Mike Abdullah <email@hidden>
- Date: Mon, 19 Dec 2011 00:20:42 +0000
On 18 Dec 2011, at 17:08, Koen van der Drift wrote:
> Just to be sure I'm doing this correctly in my code I extract the number from my textfield and stepper as follows:
>
> NSUInteger index = [ indexTextField integerValue];
>
> and/or
>
> NSUInteger index = [indexStepper integerValue];
The whole point of bindings is so you don't write this code at all.
>
>
> BTW that exclamation mark went away when I select a Value Transformer from the field below it. Is that also required besides a formatter?
A value transformer has the same effect as a formatter, but with less control. e.g. it can't report an error, or adjust input as the user types.
_______________________________________________
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