From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Constant As Boolean

aBoolean = TargetMachO

Used to indicate that you are compiling code for the macOS Mach-O runtime architecture. All macOS builds currently use the Mach-O format.


result = TargetMachO

Part Type Description
result Boolean Returns True if you are compiling Mach-O code or running a Mach-O macOS app. When building macOS applications, this always returns True.


TargetMachO is always True if you choose to build a macOS app.

See Also

DebugBuild, XojoVersion, XojoVersionString, TargetBigEndian, TargetDesktop, TargetLinux, TargetLittleEndian, TargetMacOS, TargetWeb, TargetWindows, TargetX86 constants; #If...#Endif statement.