[Vm-dev] iOS VM - MainWindow.xib - Hand crafted?
phil at highoctane.be
phil at highoctane.be
Thu Feb 28 18:14:47 UTC 2013
Hello,
In order to get the external keyboard events, I need to overload
sendEvent: my own UIApplication class.
But it looks like the iOS VM has its own weird way of being done.
The MainWindow.xib has the SqueakNoOGLIPhoneAppDelegate mentioned in
there (in ...-3... SqueakNo...).
Usually, one does't start its UIKit app with:
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [NSAutoreleasePool new];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool drain];
return retVal;
}
but with something like:
#import <UIKit/UIKit.h>
#import "HOAppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil,
NSStringFromClass([HOAppDelegate class]));
}
}
forget the pool stuff of course. but the second nil argument disturbs
me. Also, we have this annoying console message:
<Warning>: Application windows are expected to have a root view
controller at the end of application
Along with some Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595]
<Error>: CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back iStackVM[595] <Error>:
CGImageCreate: invalid image size: 0 x 0.
Feb 28 19:12:52 iPad-de-Philippe-Back backboardd[26] <Warning>:
CoreAnimation: updates deferred for too long
Feb 28 19:12:52 iPad-de-Philippe-Back backboardd[26] <Warning>:
CoreAnimation: timed out fence 26083
Feb 28 19:12:52 iPad-de-Philippe-Back SpringBoard[66] <Warning>:
CoreAnimation: failed to receive fence reply: 10004003
of which I have no clue.
So, how does the iOS VM startup process work?
Where to put my sendEvent: hook?
TIA
Phil
More information about the Vm-dev
mailing list