Re: Checking OS Version with Cocoa
Re: Checking OS Version with Cocoa
- Subject: Re: Checking OS Version with Cocoa
- From: Edward Fink <email@hidden>
- Date: Sun, 5 Jan 2003 11:19:26 -0500
I haven't seen it answered this way yet but I use code similar to the
following:
NSString *aString = [[NSProcessInfo processInfo]
operatingSystemVersionString];
This returns an NSString looking something like this:
"OS X Version 10.2.3 (Build 6G30)"
I am not sure if there is any downside to this as no one else posted
it, but I use it all the time with no problems....and it is 1 line of
code :).
Ed Fink
On Saturday, January 4, 2003, at 04:56 PM, Chad Armstrong wrote:
>
Is there a way to check a machine's OS version using Cocoa? I've
>
searched through some books, the web, and even these archives and
>
didn't find anything right off hand. I've seen some Carbon code in
>
doing this, but not Cocoa.
>
>
Chad Armstrong
>
_______________________________________________
>
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.
_______________________________________________
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.