Whoops, yes! Hard day at work! Of course, through Rosetta you're
running a PPC binary on an Intel, so it would evaluate as false.
So presumably a declare to something like NXGetArchInfoFrom... would
do the trick. Apple's docs don't seem too clear on this, because they
are mostly talking about setting compiler flags. So how does About
This Mac pull up the processor details?
On 21 Feb 2006, at 19:58, Phil M wrote:
I don't think so... the "#If" pragma is a compile time directive.
If you are compiling a Mac OS X Mach-O with REALbasic 2006, then it
would always evaluate TargetX86 as false at compile time. I think
that declares and/or the System.Gestalt suggestions are the only
method to determine *right now* if the PPC-built app is running on
a Macintosh Intel computer (through Rosetta).
Tony Spencer
St Rémy de Provence (13) France
[EMAIL PROTECTED]
Jef Raskin, the Mac's original project leader before Steve Jobs took
the role, and the "father of the Mac": "In 1979, I specified a long
list that covered most of the things we would do with it [the Mac]
though I missed four major uses: gambling, pornography, sending spam
and spreading viruses."
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>