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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to