Re: responding to NSStepper clicks
Re: responding to NSStepper clicks
- Subject: Re: responding to NSStepper clicks
- From: Mike Abdullah <email@hidden>
- Date: Fri, 16 Dec 2011 15:40:24 +0000
Your text field is is bound to the model/a controller right? If so, you want the "updates immediately" binding option.
On 16 Dec 2011, at 12:59, Koen van der Drift wrote:
> On Thu, Dec 15, 2011 at 10:50 AM, Koen van der Drift
> <email@hidden> wrote:
>> On Thu, Dec 15, 2011 at 10:17 AM, Mike Abdullah
>> <email@hidden> wrote:
>>
>>> NSStepper is a subclass of NSControl. Hook up its action/target to be notified when it's adjusted.
>>
>> I'll try that, thanks. Using bindings sometimes makes you forget that
>> there is still some cdong needed :)
>>
>> - Koen.
>
> (with cdong, I meant coding :)
>
> Adding an IBAction did the trick indeed. One aditional question, how
> do I make the textfield immediately send the updated value to
> controlTextDidChange without the need of htting enter of tabbing out
> of the field? See eg the Date/Time preference panel.
>
> - Koen.
_______________________________________________
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