Re: Preferences caching?
On 27 Nov 2013, at 11:29 pm, Quincey Morris quinceymor...@rivergatesoftware.com 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” menu item, rather than a button. For example, an alternate to your app — Preferences…, but with the Option key held down. That way, it’s hidden normally, but the reset procedure is easy to explain, even to damn fools. Plus, it’s really, really easy to set this up IB these days. Not a bad idea. The button I added currently lives at (App)-Preferences-(“Advanced Tab)- Reset Preferences…” — Alert to confirm with warning that you need to think about it carefully. So not all that visible. But an alt menu item leading to the same alert would be sensible too. —Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Preferences caching?
On 28 Nov 2013, at 1:14 am, Shane Stanley sstan...@myriad-com.com.au 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 idea. I’ll make sure we have these available if such a support issue ever comes up. Thanks for the suggestion. —Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Preferences caching?
On Nov 27, 2013, at 7:14 PM, Shane Stanley sstan...@myriad-com.com.au wrote: On 28 Nov 2013, at 7:53 AM, Graham Cox graham@bigpond.com 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 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. Did the AppleScript I posted to this thread yesterday not make it to the list? -- Bill Cheeseman - b...@cheeseman.name ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Preferences caching?
Le 28 nov. 2013 à 12:05, Bill Cheeseman wjcheese...@gmail.com a écrit : On Nov 27, 2013, at 7:14 PM, Shane Stanley sstan...@myriad-com.com.au wrote: On 28 Nov 2013, at 7:53 AM, Graham Cox graham@bigpond.com 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 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. Did the AppleScript I posted to this thread yesterday not make it to the list? It does. I got it. -- Jean-Daniel ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Preferences caching?
On 28 Nov 2013, at 10:05 PM, Bill Cheeseman wjcheese...@gmail.com 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 you *know* the user didn't choose the wrong app, and they won't pass it around as the new universal panacea. -- Shane Stanley sstan...@myriad-com.com.au www.macosxautomation.com/applescript/apps/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Preferences caching?
On Nov 28, 2013, at 5:27 AM, Graham Cox graham@bigpond.com wrote: On 28 Nov 2013, at 1:14 am, Shane Stanley sstan...@myriad-com.com.au 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 idea. I’ll make sure we have these available if such a support issue ever comes up. Thanks for the suggestion. As an alternative, you could test for some key combo held down on launch, like iPhoto or iTunes does to allow one to pick a different library to load from. See the key combo at launch time, and you can go down a different code path that doesn't access the preferences at all and resets/deletes them, then continue on to normal launch after that. _ Michael Nickerson ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Localized time estimates?
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) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Localized time estimates?
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__] to save space, and I have a habit of using code-like localisation keys, you can find an alternative implementation in my MSBooster library (and hence the prefix). The MSLocalizedTimeInterval turns a time interval into its localised human-friendly version. On Nov 29, 2013, at 1:31, Graham Cox graham@bigpond.com wrote: 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) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/xcvista%40me.com This email sent to xcvi...@me.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com