#if targetEnvironment(macCatalyst) -- OBJ-C equivalent?

What would be the Objective-C equivalent of "#if targetEnvironment(macCatalyst)" (works in swift but not objc)? I'm getting "Function-like macro 'targetEnvironment' is not defined" error
Got it #if TARGETOSMACCATALYST

Realized contextMenuConfigurationForRowAtIndexPath is called regardless of addInteraction(UIContextMenuInteraction).

No, actually it's #if TARGET_OS_MACCATALYST, also, nowadays TARGET_OS_IOS is defined for both iOS and Mac's Catalyst!!

See complete macro list on StackOverflow answer.

#if targetEnvironment(macCatalyst) -- OBJ-C equivalent?
 
 
Q