DEFINEs to know if I'm using simulator or iphone

Member
Posts: 249
Joined: 2008.10
Post: #1
Hi!

Which DEFINEs are available to know if I'm using the simulator or the iphone?

Thanks.
Quote this message in a reply
Member
Posts: 31
Joined: 2009.01
Post: #2
TargetConditionals.h

#define TARGET_OS_IPHONE
#define TARGET_IPHONE_SIMULATOR

Hope this helps.
Quote this message in a reply
Member
Posts: 249
Joined: 2008.10
Post: #3
haudio Wrote:TargetConditionals.h

#define TARGET_OS_IPHONE
#define TARGET_IPHONE_SIMULATOR

Hope this helps.

That's what I wanted. Thanks a lot.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Most preferred iPhone simulator? TimMcD 5 3,983 Apr 16, 2010 05:30 PM
Last Post: Chris Burkhardt
  iPhone simulator performance Mister T 10 6,450 Feb 14, 2010 08:10 PM
Last Post: Zwilnik
  Why do I see strange texture borders on Simulator but not on iPhone? riruilo 2 2,817 Oct 4, 2009 10:33 AM
Last Post: riruilo
  iPhone or Simulator jjslay 2 2,783 Jun 20, 2009 11:42 PM
Last Post: kodex
  What defines a game to apple? I have a text adventure game, like zork... jtbullet 1 2,814 May 18, 2009 09:18 PM
Last Post: Gillissie