1

I have a class that I want to share between two different applications. The only real difference is the base framework it references. Cocoa imports and of course Cocoa-Touch imports . I would like to use a precompiler directive to check what I am compiling to and allow the correct import. What can I check to see if what My target is? or is there a better way to do this?

Sam
  • 7,252
  • 16
  • 46
  • 65
Rob
  • 4,149
  • 5
  • 34
  • 48

1 Answers1

0

You're looking for:

#ifdef TARGET_OS_IPHONE
Shawn Craver
  • 1,986
  • 1
  • 15
  • 16