1 | #import <Foundation/Foundation.h> |
2 | #if defined (__i386__) || defined (__x86_64__) |
3 | #import <Cocoa/Cocoa.h> |
4 | #else |
5 | #import <UIKit/UIKit.h> |
6 | #endif |
7 | |
8 | int 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 | #else |
17 | [UIApplication sharedApplication]; |
18 | CGRect rect = { 0, 0, 100, 100}; |
19 | UIWindow* window = [[UIWindow alloc] initWithFrame:rect]; |
20 | #endif |
21 | [pool release]; // Set breakpoint here. |
22 | return 0; |
23 | } |
24 | |
25 | |