Difference between revisions of "TargetMacOS"

From Xojo Documentation

m (See Also)
m
 
Line 6: Line 6:
 
}}
 
}}
 
{{Description
 
{{Description
|text = Used to indicate that you are compiling code for OS X using the Cocoa framework. }}
+
|text = Used to indicate that you are compiling code for macOS. }}
  
 
== Usage ==
 
== Usage ==
 
''result'' = '''TargetMacOS'''
 
''result'' = '''TargetMacOS'''
 
{| class="genericTable"
 
{| class="genericTable"
 
 
! width=15% | Part
 
! width=15% | Part
 
 
! width=15% | Type
 
! width=15% | Type
 
 
! width=55% | Description
 
! width=55% | Description
 
|-
 
|-
 
|result
 
|result
 
 
|[[Boolean]]
 
|[[Boolean]]
|Returns [[True]] if you are compiling or running for OS X.
+
|Returns [[True]] if you are compiling or running for macOS.
 
 
 
|-
 
|-
 
|}
 
|}
  
 
== See Also ==
 
== See Also ==
[[DebugBuild]], [[XojoVersion]], [[XojoVersionString]], [[TargetBigEndian]], [[TargetCocoa]], [[TargetDesktop]], [[TargetLinux]], [[TargetLittleEndian]], [[TargetMachO]], [[TargetWeb]], [[TargetWindows]], [[TargetX86]] constants;  [[#If...#Endif]] statement.
+
[[DebugBuild]], [[XojoVersion]], [[XojoVersionString]], [[TargetBigEndian]], [[TargetiOS]], [[TargetDesktop]], [[TargetLinux]], [[TargetLittleEndian]], [[TargetARM]], [[TargetWeb]], [[TargetWindows]], [[TargetX86]] constants;  [[#If...#Endif]] statement.
  
 
[[Category:Language_OS]]
 
[[Category:Language_OS]]
 
[[Category:Language_Constants]]
 
[[Category:Language_Constants]]
 
[[Category:Compiler]]
 
[[Category:Compiler]]

Latest revision as of 15:28, 21 November 2018

Constant As Boolean

aBoolean = TargetMacOS

Used to indicate that you are compiling code for macOS.

Usage

result = TargetMacOS

Part Type Description
result Boolean Returns True if you are compiling or running for macOS.

See Also

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