Am 16.12.2011 um 13:59 schrieb Koen van der Drift:

> On Thu, Dec 15, 2011 at 10:50 AM, Koen van der Drift
> <[email protected]> wrote:
>> On Thu, Dec 15, 2011 at 10:17 AM, Mike Abdullah
>> <[email protected]> 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.

Not sure I am getting you right here:

As long as everything is correctly hooked up (esp. the delegate outlet of the 
text field) each and every keystroke will trigger 
-(void)controlTextDidChange:(NSNotification *)aNotification in the delegate. 
This should work out of the box. Works for me at least and has worked like this 
ever since. Put an NSLog inside or set a breakpoint to see if it works. If 
bindings are involved you might want to check the various binding options in IB.
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to