Re: Localized time estimates?

2013-11-28 Thread Maxthon Chan
I’d usually go with this: MSSTR(NSLocalizedString(@“ui.approxTimeFormat”, nil), MSLocalizedTimeInterval(timeInterval)) In en_US it expands: ui.approxTimeFormat = “Approx. %@“ In zh_CN: ui.approxTimeFormat = “大约 %@后“ Note: MSSTR(...) is a macro expands to [NSString stringWithFormat:__VA_ARGS_

Localized time estimates?

2013-11-28 Thread Graham Cox
I’m fairly sure the answer’s no, but is there any way to get a localized time-estimate string, given a NSTimeInterval? e.g. “about 10 seconds”, etc for progress indicators and the like. —Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Preferences caching?

2013-11-28 Thread Michael Nickerson
> On Nov 28, 2013, at 5:27 AM, Graham Cox wrote: >> On 28 Nov 2013, at 1:14 am, Shane Stanley wrote: >> >> Or write a one-line AppleScript script: >> >> do shell script "defaults delete ..." >> >> Save it as a code-signed app, send it to them, and tell them to >> double-click. A lot easier t

Re: Preferences caching?

2013-11-28 Thread Shane Stanley
On 28 Nov 2013, at 10:05 PM, Bill Cheeseman wrote: > Did the AppleScript I posted to this thread yesterday not make it to the list? It did, although I admit I just glossed over it. But from the perspective of what support staff hand out, I think a hard-coded script is a better option. That way

Re: Preferences caching?

2013-11-28 Thread Jean-Daniel Dupas
Le 28 nov. 2013 à 12:05, Bill Cheeseman a écrit : > > On Nov 27, 2013, at 7:14 PM, Shane Stanley wrote: > >> On 28 Nov 2013, at 7:53 AM, Graham Cox wrote: >> >>> I guess if/when it crops up again we’ll just have to navigate the >>> unfortunate user through the command line. >> >> Or write

Re: Preferences caching?

2013-11-28 Thread Bill Cheeseman
On Nov 27, 2013, at 7:14 PM, Shane Stanley wrote: > On 28 Nov 2013, at 7:53 AM, Graham Cox wrote: > >> I guess if/when it crops up again we’ll just have to navigate the >> unfortunate user through the command line. > > Or write a one-line AppleScript script: > > do shell script "defaults de

Re: Preferences caching?

2013-11-28 Thread Graham Cox
On 28 Nov 2013, at 1:14 am, Shane Stanley wrote: > Or write a one-line AppleScript script: > > do shell script "defaults delete ..." > > Save it as a code-signed app, send it to them, and tell them to double-click. > A lot easier than navigating Library folders for the average user. Good id

Re: Preferences caching?

2013-11-28 Thread Graham Cox
On 27 Nov 2013, at 11:29 pm, Quincey Morris wrote: > You make reasonable points, but the fact that your explanation does a lot of > tap dancing to get there might suggest an overreaction Hmm, well, short summary: bugs happen. > In these circumstances, I’d suggest you consider an “alternate”