HI all,
In xcode I am trying to load different nib file in case I am using iphone/ipod or ipad.
I have a Define.h file with all enum and constants in it, so I would like to put in there a kind of (obviously wrong because I don't know how to do it):
#if IPHONE // <-- can I intercept the Active Executable here ?
#define MY_VIEW @"TableViewIphone.xib"
#else
#define MY_VIEW @"TableViewIpod.xib"
#endif
Then in my view controllers which include Define.h
[[NSBundle mainBundle] loadNibNamed:MY_VIEW owner:self options:nil];
I am in need of doing this with device simulator, is there a way to intercept what's in "Active Executable" in xcode and have a specialized set of define ? Are there any other and easier alternatives ?
thanks