home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / UNIX-HatersTool / BBSwapWindow.m < prev    next >
Encoding:
Text File  |  1995-04-12  |  829 b   |  36 lines

  1. /* BBSwapWindow.m                 
  2.  *
  3.  * This our special window obejct. The only thing it does is to trigger a 
  4.  * inital swap for the swpaByMatrix view.
  5.  *
  6.  * For interface-info see the header file. The comments in this file mostly
  7.  * cover only the real implementation details.
  8.  *
  9.  * Written by:         Thomas Engel
  10.  * Created:            27.12.1994 (Copyleft)
  11.  * Last modified:     27.12.1994
  12.  * Copyright (C) 1995 Thomas Engel
  13.  */
  14.  
  15. #import "BBSwapWindow.h"
  16. #import <misckit/MiscSwapView.h>
  17.  
  18. @implementation BBSwapWindow
  19.  
  20. - makeKeyAndOrderFront:sender
  21. {
  22.     if( [triggerSource respondsTo:@selector(selectedCell)] )
  23.             [swapView swapContentView:[triggerSource selectedCell]];
  24.     else    [swapView swapContentView:triggerSource];
  25.     
  26.     return [super makeKeyAndOrderFront:sender];
  27. }
  28.  
  29. @end
  30.  
  31. /*
  32.  * History: 27.12.94 First testShoud just work.
  33.  *
  34.  *
  35.  * Bugs: - No.
  36.  */