I\'m working on a new app that I want to be universal for the iPhone and iPad. I started out with the \"Create a Window-based app\" wizard, and it created separate app delegates
Quite the opposite. A universal app runs the same binary on iPhone and iPad so you cannot use conditional compilation to differentiate between the two version. But you need to use the macro Apple cites in the documentation:
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
// iPad-specific code
} else {
// iPhone-specific code
}