• 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: Checking OS Version with Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Checking OS Version with Cocoa (From: Chad Armstrong <email@hidden>)

  • Prev by Date: Re: newbie question initWithCapacity
  • Next by Date: Addressbook framework without a regular user
  • Previous by thread: Re: Checking OS Version with Cocoa
  • Next by thread: Re: Checking OS Version with Cocoa
  • Index(es):
    • Date
    • Thread