[Lldb-commits] [lldb] r175475 - NSWindows should only be created after you have an NSApplication

Enrico Granata egranata at apple.com
Mon Feb 18 16:39:59 PST 2013


Author: enrico
Date: Mon Feb 18 18:39:59 2013
New Revision: 175475

URL: http://llvm.org/viewvc/llvm-project?rev=175475&view=rev
Log:
NSWindows should only be created after you have an NSApplication


Modified:
    lldb/trunk/test/lang/objc/rdar-12408181/main.m

Modified: lldb/trunk/test/lang/objc/rdar-12408181/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/rdar-12408181/main.m?rev=175475&r1=175474&r2=175475&view=diff
==============================================================================
--- lldb/trunk/test/lang/objc/rdar-12408181/main.m (original)
+++ lldb/trunk/test/lang/objc/rdar-12408181/main.m Mon Feb 18 18:39:59 2013
@@ -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.





More information about the lldb-commits mailing list