universal

How to test for the existance of a constant when creating a iPhone universal binary

I am trying to create a universal binary that supports multitasking on the iPhone 4 and can still run on the iPad. I know how to avoid compile errors for different versions of the iPhone IOS by checking if a class exists by using NSClassFromString and "respondToSelector", but is there a way to check for the existence of constants like U...

Using an old OS category and a new OS informal protocol in the same code base

NSStreamDelegate was defined in previous OS as (NSObject)NSStreamDelegate In the latest OS it is defined as id Both have the same function. If I want to write code that is Runtime system aware. How do I create an object that is both and neither? I dream of that truly universal app. if (catchOS10.5_or_iOS3.2) { [MyStream setDelegate:m...

Universal app iPad / iPhone with seperate recources?

i have build an universal app i have assets that are for both but i have a couple assets ( embeded movie's ) that are only for iphone or only for ipad. is there a possibility to make 2 builds 1 for iphone and 1 for ipad so that the iphone app doesn't grow to large? ...

upgrade to universal app - size of mainWindow-iPad is 320x480

Hi, I have the following problem. I have an iPhone app and want to upgrade to universal When I do this, I get the expected MainWindow-iPad.xib. But the size of the window is hardcoded to 320x480. Also, there is no view in the window. I red, this should be automatically iPad-sized, so I am assuming I am doing something wrong. What exactl...

xcode's executable product for c++ project

Hello, everyone... I've completed a simple numbers-version of the game "Towers of Hanoi" using xcode's command line tool in C++. Being accustomed to PC compilers like borland's and visual-c, I've attempted to "share" the game with others via e-mail by simply attaching the executable product built by xcode. However, the recipients can't ...

Make Eclipse RCP Intro part of a perspective

Hi, For a product we are creating, we want to be able to have the welcome screen display in a perspective (which we are calling "Start Here"). The intro is the only thing that needs to be in that perspective, however, when I try to add our intro view to the perspective, it says that the view already exists in the layout. I have tried p...

iPad and iPhone resources - creating resources specific to each that have the same name

Background: I have an image intensive app that was originally made for iPhone and upgraded to iPad using "two device-specific applications." So now, all of my resources are common to both, except the interfaces which are unique to each iPad and iPhone. Problem: My problem is now I have a set of images that I want to display at the full...

Can an universal application be rejected if it has no nib file?

hi i am creating an universal application(run on ipad and iphone).I want to know if i am not create nib file for iphone then is this possible that my application is rejected? ...

change universal application to ipad 3.2 application

hi i am creating an universal application now i want to change that application into ipad 3.2 application.How can i do that. ...

OSX linking non-universal (i386) w/ universal .dylib

Is this legal? I'm getting an error "Can't find <lib>.framework/Versions/4/<lib>" from the linker. In this case, <lib> is 'QtGui' that has been built as an i386 framework (not universal), but another (third party) lib I'm linking to (that uses QtGui) is universal. I'm thinking everything has to be built universal or not... ...

How to create Universal apps in iPhone/iPad?

Hi friends, I want to create a universal apps. I have already done some apps for iPhone. Now i want to start a universal apps which means the app should be runs in iPhone and iPad. I don't have any idea about that. So please guide me and give me some sample links for that. Thanks! ...

Universal Application: two different version for iphone and ipad

I have 2 different version of one program! One for ipad and one for iphone! I don't care about dupplication of code. There is an easy and fast method to make a universal application with different file (xib, .m and .h) for specific device (ipad, iphone) thanks ...

MPMoviePlayerController throws errors ONLY in universal app

My app plays a video in fullscreen mode when the app is started. Everything is working flawlessly from 3.0 to 4.1. However, if I compile the same code for a universal app, it will work on the iPad, but will not work on the iPhone (simulator) anymore. Has anyone solved this problem? Here's the code: if ([self respondsToSelector:@selec...

Is there a problem in perl 5.12.2 using splice on @ISA?

The following is a debug session on Perl 5.12. Does this make any sense? Does UNIVERSAL cache a version of the @ISA variable, which if forever uses thereafer. Back before Class::ISA was deprecated, I used to call Class::ISA::self_and_super_path to get the internals to relook at the @ISA array. Since it is now considered unnecessary, how ...

cannot compile mac os x c++ project for host architecture

Hello, I have to create a universal binary for a dylib but I'm having some problems on compile time. I am able to build my sources on mac os x 10.5 (i386 arch) but when I'm trying to compile the same sources from a mac os x 10.6 with target i386 (cause the default one on 10.6 is x86_64) I'm getting errors. I also tried to use the 10.5 ...

EventKit in Universal app (OS3.2)

I made iPhone app with eventkit framework. However, i upgrade to universal app, app can't run in ipad. I got error message dyld: Library not loaded: /System/Library/Frameworks/EventKit.framework/EventKit Yes, event kit only work for iOS 4.0 or later. So, how to make it for universal. I want to make , if iPad app, don't use event kit ...

How to make Cocod2d 0.99.4 game universal(iOS4+iOS3.2+iOS<3.2) in iPhone SDK 4.1. I am stucked.

when i create a cocos2d projecyt, XCode menu item "Project\Upgrade Current Target for iPad" becomes disable. Any solution please? EDITED: I am using SDK 4.1 and cocos2d 0.99.4 for iPhone. When I create iOS native application i get options to select target device (iPhone/iPad). But with cocos2d, there is no option. Though iphone apps ...