Re: Tiger apps on Panther
Re: Tiger apps on Panther
- Subject: Re: Tiger apps on Panther
- From: Steve Christensen <email@hidden>
- Date: Thu, 24 Aug 2006 07:35:36 -0700
On Aug 24, 2006, at 12:32 AM, Gerriet M. Denkmann wrote:
I have an app developed on TIger which crashes "unexpectedly" on
Panther.
I tried setting the "Mac OS X Deployment Target" to 10.3 or 10.4
but this did not change anything.
It could well be that I am using Tiger-only stuff - but the app
dies while loading its first nib file.
Anyway - I don't care if it does not run on Panther, but I would
like to see a nice panel telling the user that this app does
require Tiger or later.
Is there something I could put into the Info.plist file to inform
Panther not to try to launch this app?
I don't believe that there is a key to restrict an application to run
on only certain versions of the OS.
If you really don't want to run on a pre-Tiger system, you could add
a little code to your application's main() that tests the OS version,
displays a nice dialog, then quits.
int main(int argc, const char* argv[])
{
SInt32 systemVersion;
if ((Gestalt(gestaltSystemVersion, &systemVersion) != noErr) ||
(systemVersion < 0x1040))
{
CFStringRef error = CFBundleCopyLocalizedString
(CFBundleGetMainBundle(), ...);
CFStringRef explanation = CFBundleCopyLocalizedString
(CFBundleGetMainBundle(), ...);
DialogRef theAlert;
DialogItemIndex itemHit;
if (CreateStandardAlert(kAlertStopAlert, error, explanation,
NULL, &theAlert) == noErr)
RunStandardAlert(theAlert, NULL, &itemHit);
return 0;
}
return NSApplicationMain(argc, argv);
}
_______________________________________________
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