Re: Determining how the app is run (intel/ppc/rosetta/os version)?
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: "Finlay Dobbie" <email@hidden>
- Date: Fri, 26 May 2006 18:09:03 +0100
On 26/05/06, Gerben Wierda <email@hidden> wrote:
I still want to keep my app from running on some versions of the OS or
some situations because there are known OS bugs there. E.g. my app on
10.4.6 under Rosetta is one of the apps (like MatLab) triggering the OS
bug. So I started looking for ways to determine the way the app is run.
I tried doing some stuff through sysctl, but failed. Below is an
example. The CTL_KERN/KERN_VERSION works, but CTL_HW/HW_MACHINE_ARG
does not.
What are you attempting to do?
For detecting Rosetta, use sysctl.proc_native (as directed in the
entry in the UBPG I linked originally).
For detecting the OS X version, use Gestalt.
There is no point in detecting arch at runtime, it's known at compile
time. Use #ifdefs.
-- Finlay
_______________________________________________
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