NSStepper and Time
NSStepper and Time
- Subject: NSStepper and Time
- From: Yannick Wurm <email@hidden>
- Date: Sun, 19 May 2002 18:11:03 +0200
Hi!
This is my first post to Cocoadev! I'm building a small app
where the user has to enter a time into a textfield (hh:mm:ss).
What I'd optimally like to do is what Apple did in System
Preference's Date and Time, where the user clicks on one part of
the time displayed in a NSTextField (for example the number of
minutes) and can use the NSStepper immediately to the right of
the TextField to increment or decrement that value. What's nice
about this, is that you only have one NSStepper which can
controls the three values of the time. Is that hard to do? I'm
supposing I would have to subclass NSTextField, which, being a
cocoa newbie, seems waaay too complicated. But maybe I'm missing
something obvious that would let me implement this easily? (I
unsuccessfully looked through all the opensource Alarmclock
projects I could find...)
The other solution I see is to put three TextFields and three
NSSteppers, which really isn't elegant.
Thanks for your help,
Yannick
---------
- email@hidden
-
http://yannick.poulet.org
- tel: 06.16.41.71.92 icq: 22044361
_______________________________________________
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.