home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Headers / misckit / MiscSwapViewByPopUp.h < prev    next >
Encoding:
Text File  |  1994-03-23  |  2.0 KB  |  61 lines

  1. /* MiscSwapViewByPopUp.h                 
  2.  *
  3.  * This is a SwapView that can handle popUps either by tag or by title.
  4.  * If a tag is not 0 it will try to choose the viewController by title.
  5.  *
  6.  * Usage: Like the normal swapView but we have to set the popUpCover
  7.  *          to ensure that there will be a swapAction anywhere.
  8.  *
  9.  * Notes: The popUps could be handled as a matrix object too but there are some
  10.  *          problems with that when the popUp appears for the first time.
  11.  *        
  12.  *          We compare tags by default first. So if you work with multiple NIBs
  13.  *          you must use a tag for every cell (to make it work at all) 
  14.  *          because there is no way in IB to make inter NIB connections. This 
  15.  *          will never be possible anyway. Not NeXTs fault. It's a limitation
  16.  *          of the NIB concept. (OneNIB to MultiNIB problem)
  17.  *
  18.  * Written by:         Thomas Engel
  19.  * Created:            24.01.1994 (Copyright 1994 Thomas Engel)
  20.  * Last modified:     24.02.1994
  21.  */
  22.  
  23. //    This object is included in the MiscKit by permission from the author
  24. //    and its use is governed by the MiscKit license, found in the file
  25. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  26. //    for a list of all applicable permissions and restrictions.
  27.  
  28.  
  29. #import <misckit/MiscSwapView.h>
  30.  
  31. @interface MiscSwapViewByPopUp:MiscSwapView
  32. {
  33.     id        popUpCover;
  34. }
  35.  
  36. - setPopUpCover:anObject;
  37. - popUpCover;
  38.  
  39. // To handle the popUps we need a new method that can find the right popUpItem
  40. // by its title and do the comparison...by tag or item.
  41.   
  42. - swapContentView:sender;
  43. - realTrigger;
  44.  
  45. @end
  46.  
  47. /*
  48.  * History: 24.02.94 Made it a direkt subclass of SwapView.
  49.  *
  50.  *            24.01.94 Made it MiscSwap conform.
  51.  *
  52.  *            08.01.94 Conplete redesign and adding of whatPanelByObject/Tag etc.
  53.  *
  54.  *            21.12.93 First subclass of the swapController. whatPanel was im-
  55.  *                     proved to handle tags!
  56.  *
  57.  *
  58.  * Bugs: - does only handle real popUps. PullDowns might not realy work 
  59.  *           because I always set the title inside the trigger method. Hmm
  60.  *           Maybe its better to write a seperate pullDown Controller!
  61.  */