Re: finding out time format of menu bar clock
Re: finding out time format of menu bar clock
- Subject: Re: finding out time format of menu bar clock
- From: Chris Suter <email@hidden>
- Date: Sat, 1 Jul 2006 15:42:21 +1000
On 01/07/2006, at 3:04 PM, Donald Hall wrote:
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.
Looks like it's in ~/Library/Preferences/com.apple.MenuBarClock.plist
fs_usage is good for figuring out things like this.
- Chris
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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