FROM : Donald Hall
DATE : Sat Jul 01 07:04:37 2006
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_removed>
http://www.appsandmore.com
DATE : Sat Jul 01 07:04:37 2006
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_removed>
http://www.appsandmore.com
| Related mails | Author | Date |
|---|---|---|
| Donald Hall | Jul 1, 07:04 | |
| Chris Suter | Jul 1, 07:42 | |
| Steve Christensen | Jul 1, 07:45 | |
| Dimitri Bouniol | Jul 1, 07:53 | |
| Matt Neuburg | Jul 1, 16:01 |






Cocoa mail archive

