Re: how to warn users of wrong system
Re: how to warn users of wrong system
- Subject: Re: how to warn users of wrong system
- From: Bill Cheeseman <email@hidden>
- Date: Tue, 14 Oct 2003 06:35:46 -0400
on 03-10-14 5:27 AM, Chris Ridd at email@hidden wrote:
>
On 14/10/03 10:08 am, Bill Cheeseman <email@hidden> wrote:
>
>
> Sadly, it isn't very robust. I set LSMinimumSystemVersion to "10.2.0" in my
>
> app's Info.plist and tried to launch it under 10.1.3. The icon bounced once
>
> in the Dock and then nothing happened -- specifically, no dialog.
>
>
>
> I was hoping this was a solution for the problem of how to fail gracefully
>
> under older systems when you use symbols that were first introduced in later
>
> systems. No dice.
>
>
Have you tried making your executable a shell script that invokes
>
/usr/bin/sw_vers and depending on the output execs the real executable or
>
some other executable displaying a graceful error?
>
>
I daresay you could use an AppleScript instead of a shell script :-)
I know there are other techniques. But they're all harder than this one
promised to be.
Eventually, I intend to write a generic, reusable Xcode project template
that has a tiny, run-on-all-systems app to check the system version and
either fail gracefully or launch the "real" app.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.