• 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: Finding build versions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding build versions...


  • Subject: Re: Finding build versions...
  • From: Alex Rice <email@hidden>
  • Date: Fri, 15 Nov 2002 16:58:16 -0700

On Thursday, November 14, 2002, at 11:05 PM, Ryan Stevens wrote:
I know I'll get slammed for it but; hostinfo

hostinfo gets you the Darwin version (not necessarily OSX version(?)), processor and ram info.

Ok, someone can correct me now. Tell us how it's really done! ;-)


The hostinfo command looks pretty useful, yes. You could wrap it in an NSTask to read the results back from hostinfo.

Other misc stuff that might be useful:

unsigned long os_version = 0;
Gestalt (gestaltSystemVersion, &os_version);

Now os_version contains "version number of the currently active System file" in four hex digits. So 0x1020 is OS 10.2.

--

NSAppKitVersionNumber

--

NSProcessInfo - operatingSystemVersionString

"Returns a string containing the version of the operating system on which the receiver is executing. This string is human readable, localized, and is appropriate for displaying to the user or using in bug emails and such. This string is NOT appropriate for parsing"

--

Maybe there are others too?

Alex Rice <email@hidden>
Mindlube Software
http://mindlube.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: Finding build versions...
      • From: email@hidden
References: 
 >Re: Finding build versions... (From: Ryan Stevens <email@hidden>)

  • Prev by Date: Re: distributed objects
  • Next by Date: RE: Beginner questions
  • Previous by thread: Re: Finding build versions...
  • Next by thread: Re: Finding build versions...
  • Index(es):
    • Date
    • Thread