home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / QueryByExample / QBEPalette / QBEPalette.m < prev    next >
Encoding:
Text File  |  1994-09-03  |  1005 b   |  49 lines

  1. /* QBEPalette.m:
  2.  * You may freely copy, distribute, and reuse the code in this example.
  3.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  4.  * fitness for any particular use.
  5.  *
  6.  * Written by Craig Federighi
  7.  *  
  8.  *
  9.  * Example of a QBE palette: This palette uses the libQBE.a built with the QBE
  10.  * folder files. It is capable of both setting the sort order and applying
  11.  * a simple QBE interface to the current UI.
  12.  */
  13.  
  14. #import "QBEPalette.h"
  15. #import "QBE.h"
  16. #import "SortOrderSetter.h"
  17.  
  18. @implementation QBEPalette
  19.  
  20. - finishInstantiate 
  21. {
  22.     [self associateObject:QBEInstance type:IBObjectPboardType with:QBERep];
  23.     [self associateObject:SOInstance type:IBObjectPboardType with:SORep];
  24.     return self;
  25. }
  26.  
  27. @end
  28.  
  29.  
  30. @implementation QBE(_IBSupport)
  31.  
  32. /* For IB */
  33. -(NXImage *)getIBImage
  34. {
  35.     return [NXImage findImageNamed:"QBE"];
  36. }
  37.  
  38. @end
  39.  
  40. @implementation SortOrderSetter(_IBSupport)
  41.  
  42. /* For IB */
  43. -(NXImage *)getIBImage
  44. {
  45.     return [NXImage findImageNamed:"SortOrderSetter"];
  46. }
  47.  
  48. @end
  49.