/[qemu]/qemu/cocoa.m
ViewVC logotype

Diff of /qemu/cocoa.m

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by bellard, Wed Mar 2 22:22:43 2005 UTC revision 1.3 by bellard, Thu Apr 7 20:35:06 2005 UTC
# Line 416  static void QZ_SetPortAlphaOpaque () Line 416  static void QZ_SetPortAlphaOpaque ()
416  /* Called when the internal event loop has just started running */  /* Called when the internal event loop has just started running */
417  - (void)applicationDidFinishLaunching: (NSNotification *) note  - (void)applicationDidFinishLaunching: (NSNotification *) note
418  {  {
419        
420      /* Do whatever we want here : set up a pc list... */      /* Display an open dialog box if no argument were passed or
421           if qemu was launched from the finder ( the Finder passes "-psn" ) */
422    
423        if( gArgc <= 1 || strncmp (gArgv[1], "-psn", 4) == 0)
424      {      {
425          NSOpenPanel *op = [[NSOpenPanel alloc] init];          NSOpenPanel *op = [[NSOpenPanel alloc] init];
426                    
# Line 431  static void QZ_SetPortAlphaOpaque () Line 434  static void QZ_SetPortAlphaOpaque ()
434                modalForWindow:window modalDelegate:self                modalForWindow:window modalDelegate:self
435                didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL];                didEndSelector:@selector(openPanelDidEnd:returnCode:contextInfo:) contextInfo:NULL];
436      }      }
437            else
438      /* or Launch Qemu, with the global args */      {
439      //[self startEmulationWithArgc:gArgc argv:gArgv];          /* or Launch Qemu, with the global args */
440            [self startEmulationWithArgc:gArgc argv:gArgv];
441        }
442  }  }
443    
444  - (void)applicationWillTerminate:(NSNotification *)aNotification  - (void)applicationWillTerminate:(NSNotification *)aNotification

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26