From Xojo Documentation

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

Constant As Boolean

aBoolean = TargetCocoa

Used to indicate that you are compiling a Mac app.


result = TargetCocoa

Part Type Description
result Boolean Returns True if are compiling or running a Mac app.


All Mac apps use Cocoa.

See Also

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