Changeset 19886

Show
Ignore:
Timestamp:
03/28/07 07:29:48 (2 years ago)
Author:
patrick
Message:

Changed applicationShouldTerminateAfterLastWindowClosed: in
VrjMainController? to return NO. Juggler windows cannot be closed except
through reconfiguration, and shutting down the kernel causes the application
run loop to be stopped. Hence, we do not need to have the application
terminate when the last window closes because it will already be
terminating.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vrjuggler/vrj/Kernel/CocoaWrapper.mm

    r19884 r19886  
    127127   -(BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*) sencedr 
    128128   { 
    129       return YES; 
     129      // We return NO here because we have a different way of shutting down 
     130      // the application. When vrj::Kernel::stop() is invoked, it will cause 
     131      // the application run loop to stop by invoking 
     132      // vrj::CocoaWrapper::stop(). 
     133      return NO; 
    130134   } 
    131135