NSStepper, NSDatePicker
NSStepper, NSDatePicker
- Subject: NSStepper, NSDatePicker
- From: Chad Armstrong <email@hidden>
- Date: Fri, 12 Aug 2005 23:10:29 -0500
I have a text field which displays a time like hh:mm:ss.ms (ms is
milliseconds). What I've done here is take a long value which
represents the current time and format it into the string format
hh:mm:ss.ms. I would like to use an NSStepper to be able to increase
or decrease the time. However, how NSStepper has been constructed
has been a little awkward for my uses, or I'm approaching this in the
wrong manner. It seems that NSStepper contains its own value, but I
want it to correspond with the same time that is going to be
formatted into the NSTextField. I did find one way that seems to
connect up an NSStepper with an NSTextField, but that just prints out
the integer that the NSStepper contains. This wouldn't be bad if I
didn't have to format the number so it looks like a time value. Is
there an easier way about trying to solve this problem? I've looked
through Apple's NSStepper documentation, but it doesn't seem to
answer my questions very well.
Another thing I found is the NSDatePicker, which has some interesting
capabilities to it, but I would like to have the milliseconds
capabilities, and I don't need anything like the day, or AM/PM. Is
there a way to further customize this past what the Interface Builder
allows?
Chad Armstrong
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden