Re: Graceful Shutdown on an Unsupported Earlier Mac OS Version
Re: Graceful Shutdown on an Unsupported Earlier Mac OS Version
- Subject: Re: Graceful Shutdown on an Unsupported Earlier Mac OS Version
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 18 Nov 2008 09:28:22 -0700
On Nov 18, 2008, at 2:37 AM, Oleg Krupnov wrote:
1) How do I query the current OS version in Cocoa?
Gestalt(). See Gestalt.h for details.
2) Will my code even have the opportunity to check the OS version, or
an error will occur on the stage of loading and reported by the OS
loader, before a single line of my code gets executed?
Just use the LSMinimumSystemVersion Info plist key to set the minimum
OS version; then you won't have to do any work. The only problem with
this approach is it won't work in Cheetah and Puma, and won't work
correctly in Panther, but few people use the former two OS versions
anymore, and the latter is no longer a big deal.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden