From the Manual:

TargetMachO The compiled application is running on Mac OS X, running  
object code in the format for the Mach kernel. This code runs only on  
Mac OS X.

TargetMacOS The compiled application is currently running Macintosh  
code, PPC ‘classic’, or Mac OS X, in either the MachO or PEF formats.


My Environment:
Mac OSX  10.49
Mac G5
RealBASIC 2007r2



I am confused about what setting or whatever is responsible.
I had thought that if I was running the non-compiled app on a Mac  
BOTH of the following would be true

I admit that I do not know much about "Mach kernel" but I had thought  
that these two variables (TargetMachO, TargetMacOS)  would be TRUE  
and (TargetWin32) would be FALSE when I ran the non-compiled App out  
of the IDE.


________________________________________________________________________ 
__
So I put the following code in App Open area.

MsgBox("TargetMachO: "+ Str(TargetMachO))
   MsgBox("TargetMacOS: "+ Str(TargetMacOS))
   MsgBox("TargetWin32: "+ Str(TargetWin32))


I have two applications under development.

In one of them, the TargetMachO is FALSE the other TRUE.

Why is this?  What is different between these two apps?  Is it some  
setting?

The problem came to my attention when I copied some code with a

#If TargetMachO

and it got treated differently by the two programs




_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to