• 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: how to warn users of wrong system
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to warn users of wrong system


  • Subject: Re: how to warn users of wrong system
  • From: Nick Zitzmann <email@hidden>
  • Date: Fri, 10 Oct 2003 19:46:11 -0700

On Friday, October 10, 2003, at 11:26 AM, Gibbons Burke wrote:

Try calling NSApplicationLoad() first.

That call is available only in Jaguar, so it won't work for earlier versions of the system, according to this document:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ CarbonCocoaDoc/cci_chap3/chapter_3_section_4.html>

There's also the Carbon option if you anticipate some 10.0 or 10.1 users might run the application... Something like:

if (some version check here that fails)
{
OSStatus err;
DialogRef alert;
DialogItemIndex ignored;

if ((err = CreateStandardAlert(kAlertStopAlert, CFSTR("This application requires Mac OS X 10.x.x or later."), NULL, NULL, &alert) == noErr)
{
RunStandardAlert(alert, NULL, &ignored);
exit(0);
}
}

According to the documentation, CreateStandardAlert() should work in every version of Mac OS X...

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/

"I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." - Bjarne Stroustrup
_______________________________________________
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.
  • Follow-Ups:
    • Re: how to warn users of wrong system
      • From: Jérome Foucher <email@hidden>
References: 
 >Re: how to warn users of wrong system (From: Gibbons Burke <email@hidden>)

  • Prev by Date: Re: Number formatting
  • Next by Date: Re: Sending data to libxslt
  • Previous by thread: Re: how to warn users of wrong system
  • Next by thread: Re: how to warn users of wrong system
  • Index(es):
    • Date
    • Thread