Re: NSStepper - How can I tell which arrow has been clicked?
Re: NSStepper - How can I tell which arrow has been clicked?
- Subject: Re: NSStepper - How can I tell which arrow has been clicked?
- From: Esteban <email@hidden>
- Date: Fri, 19 Apr 2002 15:18:49 -0700
I'm not sure but you might be able to use selectedCell to get which one
was pressed. I'm not sure if this will work at all.
NSStepper might just be one control with no cells or subviews you can
examine...
you'll probably have to track the last NSStepper value and compare it to
the new one to determine which arrow was pressed.
-Esteban
On Friday, April 19, 2002, at 02:46 PM, Julian Barkway wrote:
I have set up an NSStepper (or the 'little arrows' that allow you to
increment/decrement a number in a related text field) and I have to
admit to being stumped with regards to getting the action back. Yes, I
can get IB to invoke my action method when the stepper is clicked but I
suspect that this won't tell me whether it's the up or down arrow
specifically that's been clicked.
Any ideas? The documentation on this topic is pretty much worthless.
Thanks for any help.
Julian Barkway.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.