• 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: Determining how the app is run (intel/ppc/rosetta/os version)?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining how the app is run (intel/ppc/rosetta/os version)?


  • Subject: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • From: Colin Howarth <email@hidden>
  • Date: Sun, 21 May 2006 13:07:34 +0200

sorry, don't know how that happened...
last message should have looked like this:



On 21.05.2006, at 10:38, Gerben Wierda wrote:



I would like to determine very specificly how my app is being run. E.g.
- On 10.4.4 on intel using rosetta
- On 10.4.6 ppc
- On 10.3.9 ppc


The app is a universal binary where the intel part is compiled for Tiger (of course) and the ppc part is comppiled for 10.3 and linked against MacOSX10.3.9.sdk

I tried using
if (floor(NSAppKitVersionNumber) >= 800)
to find out if I am running on Tiger, but when I start the app using Rosetta, it still says I'm on Tiger (of course).


So, how do I find all these out?



Well, I'm not a Cocoa expert (beginner, in fact) but you might be able to get something out of uname (3).


Type "man 3 uname" in the terminal.

"uname -a" on my system gives

Darwin powerbook 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006;
root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh powerpc



I don't know how the Darwin kernel version relates to the OS X version (eg. 10.4.4 or 10.4.6). Mine is 10.4.6.


Surely there's some API in Cocoa??? If not, hope this helps.

colin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Next by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Previous by thread: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Next by thread: blinking text
  • Index(es):
    • Date
    • Thread