NSWindows should only be created after you have an NSApplication

llvm-svn: 175475
This commit is contained in:
Enrico Granata 2013-02-19 00:39:59 +00:00
parent d82171990f
commit a5da2adc77
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ int main (int argc, char const *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
[NSApplication sharedApplication];
NSWindow* window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained defer:NO];
[window setCanHide:YES];
[pool release]; // Set breakpoint here.