• 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: System information
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System information


  • Subject: Re: System information
  • From: Gideon King <email@hidden>
  • Date: Sat, 4 Jan 2003 08:11:10 +1000

You can get various bits of useful information using the Gestalt
command e.g. you can get the system version using the following command:

SInt32 vers;
Gestalt(gestaltSystemVersion, &vers);

The system version information is in the format 0x00001023 where the 10
is the version, 2 is the minor version, and the 3 is the release. So if
you wanted to extract the information in some more useful format, you
would probably want to do something like:

int minor;
minor = (vers & 0x000000f0)/0x00000010;


HTH

Gideon.
_______________________________________________
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.

References: 
 >Re: System information (From: Kent Sandvik <email@hidden>)

  • Prev by Date: Modify keychains with Keychain Services
  • Next by Date: Dragging inside NSTableView leaks memory?
  • Previous by thread: Re: System information
  • Next by thread: PB compiler Choice
  • Index(es):
    • Date
    • Thread