Re: Finding build versions...
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.