Re: Detecting the installed version of Xcode
Re: Detecting the installed version of Xcode
- Subject: Re: Detecting the installed version of Xcode
- From: Peter Bierman <email@hidden>
- Date: Fri, 16 Feb 2007 12:58:46 -0800
At 12:22 PM -0800 2/16/07, Goldfarb, Tammy A wrote:
What is the best way to detect the installed version of Xcode?
Generally, the best way to answer questions like that is to get as
close to the authoritative answer as possible.
In this case, you want to know the CFBundleShortVersionString in the
Info.plist of the Xcode.app which is _probably_ located in
/Developer/Applications.
Since apps can move around on Mac OS X, you should ask LaunchServices
where to find com.apple.Xcode.
See:
http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesReference/index.html
In particular, LSFindApplicationForInfo() to find Xcode, and then
NSBundle or CFBundle APIs to get the CFBundleShortVersionString
(marketing version), or CFBundleVersion (build #).
-pmb
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden