forked from OSchip/llvm-project
NSWindows should only be created after you have an NSApplication
llvm-svn: 175475
This commit is contained in:
parent
d82171990f
commit
a5da2adc77
|
@ -5,6 +5,7 @@ int main (int argc, char const *argv[])
|
||||||
{
|
{
|
||||||
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
|
||||||
|
|
||||||
|
[NSApplication sharedApplication];
|
||||||
NSWindow* window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained defer:NO];
|
NSWindow* window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,100,100) styleMask:NSBorderlessWindowMask backing:NSBackingStoreRetained defer:NO];
|
||||||
[window setCanHide:YES];
|
[window setCanHide:YES];
|
||||||
[pool release]; // Set breakpoint here.
|
[pool release]; // Set breakpoint here.
|
||||||
|
|
Loading…
Reference in New Issue