Re: How does one get the OS Product name programatically?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nbp1r2HzCN9VFptyPLo4iL5KtHML/rzhRBpwN19GkCGoQdEvxVU2Ig21l90ZDxFHLUQSOv6pgrJEYbj8i2bxGt1Q9Z7c1iLhk4rPbkyoK7VfNIJ+LIIQ1tGfQHflINddgYfjWi1HadE7W8ZEVeS+XmDNEyX1ssLgbY24sxWT1g8=
From posts on macos-x-server I see that "sw_vers –productName" will give me exactly what I am looking for (i.e. whether I am running Mac OS X or Mac OS X Server), but I'd like to get this within my program without having to shell out to a tool (it gets it from *some* API).
There is no public API for this. As you ascertain, checking for ServerVersion.plist is a way of doing this that will work on all current released verisons of OS X Server. File a bug. -- Finlay _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 10/05/06, David Litwin <david_litwin@bigfix.com> wrote: This email sent to site_archiver@lists.apple.com
participants (1)
-
Finlay Dobbie