25 lines · plain
1#import <Foundation/Foundation.h>2#if defined (__i386__) || defined (__x86_64__)3#import <Cocoa/Cocoa.h>4#else5#import <UIKit/UIKit.h>6#endif7 8int main (int argc, char const *argv[])9{10 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];11#if defined (__i386__) || defined (__x86_64__)12 13 [NSApplication sharedApplication];14 NSWindow* window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained defer:NO];15 [window setCanHide:YES];16#else17 [UIApplication sharedApplication];18 CGRect rect = { 0, 0, 100, 100};19 UIWindow* window = [[UIWindow alloc] initWithFrame:rect];20#endif21 [pool release]; // Set breakpoint here.22 return 0;23}24 25