• 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
finding out time format of menu bar clock
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

finding out time format of menu bar clock


  • Subject: finding out time format of menu bar clock
  • From: Donald Hall <email@hidden>
  • Date: Fri, 30 Jun 2006 23:04:37 -0600

Does anyone know a way to determine programmatically in Cocoa whether or not the user has set the "use a 24-hour clock" option in the Date & Time preferences pane? Accessing NSTimeFormatString through NSUserDefaults gives you the time format for the current locale, not the menu bar clock. I would like to be able to see what the user is using in the menu bar, and then have my application show the time in the same format. I couldn't figure out where this information is stored - presumably in a plist somewhere.

Thanks for any pointers,

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
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: finding out time format of menu bar clock
      • From: Dimitri Bouniol <email@hidden>
    • Re: finding out time format of menu bar clock
      • From: Steve Christensen <email@hidden>
    • Re: finding out time format of menu bar clock
      • From: Chris Suter <email@hidden>
  • Prev by Date: Re: NSLog() and stderr
  • Next by Date: Re: finding out time format of menu bar clock
  • Previous by thread: Re: NSLog() and stderr
  • Next by thread: Re: finding out time format of menu bar clock
  • Index(es):
    • Date
    • Thread