Re: Detecting the installed version of Xcode
site_archiver@lists.apple.com Delivered-To: Installer-dev@lists.apple.com At 12:22 PM -0800 2/16/07, Goldfarb, Tammy A wrote: See: http://developer.apple.com/documentation/Carbon/Reference/LaunchServicesRefe... -pmb _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. In particular, LSFindApplicationForInfo() to find Xcode, and then NSBundle or CFBundle APIs to get the CFBundleShortVersionString (marketing version), or CFBundleVersion (build #). This email sent to site_archiver@lists.apple.com
participants (1)
-
Peter Bierman