• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSStepper, NSDatePicker
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSStepper, NSDatePicker
      • From: Stéphane Sudre <email@hidden>
    • Re: NSStepper, NSDatePicker
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Copy managed object between contexts?
  • Next by Date: Screen snapshot example code posted
  • Previous by thread: Re: Copy managed object between contexts?
  • Next by thread: Re: NSStepper, NSDatePicker
  • Index(es):
    • Date
    • Thread