src/macosx/native/sun/awt/awt.m

Print this page

        

*** 314,324 **** // Don't set the delegate until the NSApplication has been created and // its finishLaunching has initialized it. // ApplicationDelegate is the support code for com.apple.eawt. [ThreadUtilities performOnMainThreadWaiting:YES block:^(){ ! OSXAPP_SetApplicationDelegate([ApplicationDelegate sharedDelegate]); }]; } - (void)starter:(NSArray*)args { NSAutoreleasePool *pool = [NSAutoreleasePool new]; --- 314,327 ---- // Don't set the delegate until the NSApplication has been created and // its finishLaunching has initialized it. // ApplicationDelegate is the support code for com.apple.eawt. [ThreadUtilities performOnMainThreadWaiting:YES block:^(){ ! id<NSApplicationDelegate> delegate = [ApplicationDelegate sharedDelegate]; ! if (delegate != nil) { ! OSXAPP_SetApplicationDelegate(delegate); ! } }]; } - (void)starter:(NSArray*)args { NSAutoreleasePool *pool = [NSAutoreleasePool new];