Diff for /chimera/MainController.mm between versions 1.36 and 1.39

version 1.36, 2002/04/08 22:30:20 version 1.39, 2002/04/12 19:45:37
Line 99  static const char* ioServiceContractID = Line 99  static const char* ioServiceContractID =
   // If we have a key window, have it autosave its dimensions before    // If we have a key window, have it autosave its dimensions before
   // we open a new window.  That ensures the size ends up matching.    // we open a new window.  That ensures the size ends up matching.
   NSWindow* keyWindow = [mApplication keyWindow];    NSWindow* keyWindow = [mApplication keyWindow];
  if (keyWindow)  if ( keyWindow && [keyWindow respondsToSelector:@selector(autosaveWindowFrame)] )
     [[keyWindow windowController] autosaveWindowFrame];      [[keyWindow windowController] autosaveWindowFrame];
   
   // Now open the new window.    // Now open the new window.
Line 232  static const char* ioServiceContractID = Line 232  static const char* ioServiceContractID =
   [mFindDialog showWindow:self];    [mFindDialog showWindow:self];
 }  }
   
   
   //
   // -findAgain
   //
   // Called in response to "Find Again" in edit menu. Tells the find controller
   // to find the next occurrance of what's already been found.
   //
 -(IBAction) findAgain:(id)aSender  -(IBAction) findAgain:(id)aSender
 {  {
    NSWindow* keyWindow = [mApplication keyWindow];  if ( mFindDialog )
    if (keyWindow)    [mFindDialog findAgain:aSender];
      [[keyWindow windowController] findAgain];  else
     NSBeep();
 }  }
   
 -(IBAction) goBack:(id)aSender  -(IBAction) goBack:(id)aSender
Line 280  static const char* ioServiceContractID = Line 288  static const char* ioServiceContractID =
 -(void)applicationWillTerminate: (NSNotification*)aNotification  -(void)applicationWillTerminate: (NSNotification*)aNotification
 {  {
     printf("Termination notification.\n");      printf("Termination notification.\n");
   
       // Autosave one of the windows.
       NSWindow* keyWindow = [mApplication keyWindow];
       if (keyWindow)
         [[keyWindow windowController] autosaveWindowFrame];
       
     mMenuBookmarks->RemoveObserver();      mMenuBookmarks->RemoveObserver();
     delete mMenuBookmarks;      delete mMenuBookmarks;
     mMenuBookmarks = nsnull;      mMenuBookmarks = nsnull;

Removed from v.1.36  
changed lines
  Added in v.1.39


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>