• 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 do you get the OS X version number in C or C++?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get the OS X version number in C or C++?


  • Subject: Re: How do you get the OS X version number in C or C++?
  • From: Jesper Storm Bache <email@hidden>
  • Date: Fri, 14 Nov 2008 12:28:20 -0800

gestaltSystemVersion is not the best way to do it (and it caused problems in 10.4.10 and up).
As the documentation in Gestalt.h states:
"... A better way to get version information on Mac OS X would be to use the new gestaltSystemVersionMajor, gestaltSystemVersionMinor, and gestaltSystemVersionBugFix selectors..."
Jesper


On Nov 14, 2008, at 12:18 PM, chaitanya pandit wrote:

+ (BOOL)MacOSTigerOrLower
{
    UInt32 version;
    return (Gestalt(gestaltSystemVersion,(SInt32 *) &version) ==
noErr) && (version < 0x01050 );
}


On 15-Nov-08, at 1:36 AM, Tom Fortmann wrote:

Is there a core foundation function for querying the Mac OS X
operating
system name and version information?  The uname() API returns the
Darwin
kernel version information, but I need to find the OS X 10.x.x
information.



Tom Fortmann

Xcape Solutions

_______________________________________________

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

_______________________________________________

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

_______________________________________________

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


References: 
 >How do you get the OS X version number in C or C++? (From: "Tom Fortmann" <email@hidden>)
 >Re: How do you get the OS X version number in C or C++? (From: chaitanya pandit <email@hidden>)

  • Prev by Date: Re: Tabbing PDF Annotation Editor between annotations in "edit mode"?
  • Next by Date: Re: Notifying that a TextView's content has been changed?
  • Previous by thread: Re: How do you get the OS X version number in C or C++?
  • Next by thread: Re: How do you get the OS X version number in C or C++?
  • Index(es):
    • Date
    • Thread