views:

23

answers:

1

I have a class that I want to share between two different applications. The on,y 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?

Thanks in advance, Rob

A: 

You're looking for:

#ifdef TARGET_OS_IPHONE
Shawn Craver
Yes, that's it! Thanks.
Rob