home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / Palettes / TTools / TToolsPalette / Utilities.subproj / SortedStorage.h < prev    next >
Encoding:
Text File  |  1993-11-09  |  913 b   |  35 lines

  1. /* SortedStorage.h
  2.  * Written By:  Thomas Burkholder
  3.  *
  4.  * You may freely copy, distribute, and reuse the code in this example.
  5.  * NeXT disclaims any warranty of any kind, expressed or  implied, as to its
  6.  * fitness for any particular use.
  7.  */
  8.  
  9. #import <objc/Storage.h>
  10. #import <appkit/appkit.h>
  11. #import "SortedStorageAgent.h"
  12.  
  13. // a Storage that sorts
  14. @interface SortedStorage:Storage
  15. {
  16.     id        agent;
  17. }
  18.  
  19. - initCount:(unsigned)count elementSize:(unsigned)sizeInBytes description:(const char *)descriptor;
  20. - setAgent:anObject;
  21. - agent;
  22. - (id)subdirectoryForElementAt:(int)at;
  23. - (BOOL)isLeafAt:(int)at;
  24. - (const char *)displayStringForElementAt:(int)at;
  25. - (int)compareElementAt:(int)at with:(void *)anElement;
  26. - addElement:(void *)anElement;
  27.  
  28. // Browser delegation
  29. - (int)browser:sender fillMatrix:matrix inColumn:(int)column;
  30.  
  31. // archival methods
  32. - read:(NXTypedStream *)stream;
  33. - write:(NXTypedStream *)stream;
  34.  
  35. @end