• 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
Re: getting the system's time format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting the system's time format


  • Subject: Re: getting the system's time format
  • From: Donald Hall <email@hidden>
  • Date: Tue, 18 Nov 2003 21:54:26 -0700

Thanks! This is what I needed.

Don

At 12:27 AM -0800 2003/11/18, Louis C. Sacha wrote:
Hello...

The documentation you want to look at is the Foundation reference, for the NSUserDefaults class. There are a number of default preference keys that provide basic information about how the user's system is set up.

@"NSTimeFormatString" for example, which should allow you to distinguish between 12 and 24 hour clocks...

Louis


How do I determine whether the computer running my program uses a 12 or 24 hour clock format? I want to check this and then remove or add a pair of radio buttons designating AM and PM from my user interface depending on the system time format.

Thanks for pointing me in the right direction. I've tried scanning the documentation, but don't know where to start to look. (My copy of Help Viewer application crashes on search which makes it hard to do lookups!)

Don
--

--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
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.

  • Prev by Date: Re: Dynamically Generating GUI forms from an XML file?
  • Next by Date: Re: Managing undo with NSArrayController and a table displaying its objects?
  • Previous by thread: Re: getting the system's time format
  • Next by thread: Animated GIF from Cocoa app help-file?
  • Index(es):
    • Date
    • Thread