• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Tiger apps on Panther
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Tiger apps on Panther
      • From: Andrew Farmer <email@hidden>
References: 
 >Tiger apps on Panther (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Bindings Problem: KVO Not Being triggered?
  • Next by Date: Re: Links in NSTextField
  • Previous by thread: Re: Tiger apps on Panther
  • Next by thread: Re: Tiger apps on Panther
  • Index(es):
    • Date
    • Thread