NSMatrix and NSStepper
NSMatrix and NSStepper
- Subject: NSMatrix and NSStepper
- From: Matt Majka <email@hidden>
- Date: Sat, 9 Feb 2002 13:57:59 -0700
I've got a series of 6 numbers (zoom settings) that I'd like the
user to be able to change via either a text entry or a stepper.
For the text entry portion I used an NSForm. To handle
the steppers I created an NSMatrix of NSSteppers. I attached
the target action of the NSForm and the NSMatrix to the same
method and what I'd like to do is use methods to determine
which cell caused the action and update an NSMutableArray
of floats appropriately (does that all make sense?). This works
fine for the NSForm as I just use [[sender selectedCell] floatValue].
However, I haven't had any luck with the documentation as to how
to determine which stepper was activated. Can anyone help me
out with this approach or recommend a better approach? I was
trying do this in as little code as possible.
_______________________________________________
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.