10-18-2011, 04:46 AM #1
Reliable was to get current OS Version in MAC.
- Member Since
- Oct 18, 2011
I am working on Snow Leopard and work for a product based company. In one of our company's product, in the About box I need to display the current MAC OS Version.
Wanted to know if using the "SystemVersion.plist" method to determine the OS Name and version is the most reliable method available?
NSString *versionString; NSDictionary * sv = [NSDictionary dictionaryWithContentsOfFile:@"/System/Library/CoreServices/SystemVersion.plist"]; versionString = [sv objectForKey:@"ProductVersion"];
The above-mentioned code will give us the current OS Version as a string which can be displayed as it is.
Can I safely use this approach for current and future version of MAC (Lion and higher version of MAC which might be released in near future)?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By mrmalkovich in forum Apple NotebooksReplies: 4Last Post: 04-11-2014, 11:11 PM
By tadd5181 in forum OS X - Apps and GamesReplies: 6Last Post: 01-10-2010, 02:22 PM
By jg24 in forum Apple NotebooksReplies: 2Last Post: 02-28-2009, 01:29 AM
By JRV in forum Switcher HangoutReplies: 6Last Post: 07-03-2005, 06:27 PM