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: 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.