home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1995 August / NEBULA.bin / SourceCode / MiscKit1.2.6 / Headers / misckit / MiscStringArray.h < prev    next >
Encoding:
Text File  |  1994-06-15  |  1.5 KB  |  56 lines

  1. //
  2. //    MiscStringArray.h -- a generic class to store lists of strings
  3. //        Originally written by Drew Davidson
  4. //        Copyright (c) 1994 by Drew Davidson.
  5. //        Modified and extended by Don Yacktman for inclusion into the MiscKit.
  6. //                Version 1.2.  All rights reserved.
  7. //        This notice may not be removed from this source code.
  8. //
  9. //    This object is included in the MiscKit by permission from the author
  10. //    and its use is governed by the MiscKit license, found in the file
  11. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  12. //    for a list of all applicable permissions and restrictions.
  13. //    
  14.  
  15. /*----------------------------------------------------------------------------
  16.     $Source$
  17.  
  18.     REVISIONS
  19.     $Log$
  20. ----------------------------------------------------------------------------*/
  21. # import <objc/Object.h>
  22.  
  23. @class List;
  24.  
  25. # define MISC_NOT_IN_ARRAY        0xffffffff
  26.  
  27. @interface MiscStringArray : Object
  28. {    /*
  29.      * Other instance variables
  30.      */
  31.     List            *strings;
  32.     const char        **stringArray;
  33.     BOOL            uniqued;
  34. }
  35.  
  36. - (BOOL)uniqued;
  37. - setUniqued:(BOOL)yn;
  38.  
  39. - strings;
  40. - addString:(const char *)aString;
  41. - removeString:(const char *)aString;
  42. - insertString:(const char *)aString at:(unsigned int)index;
  43.  
  44. - (unsigned int)stringCount;
  45. - (unsigned int)count;    // same thing as above
  46. - (const char **)stringArray;
  47. - (const char *)stringAt:(unsigned int)index;
  48. - (unsigned int)indexOfString:(const char *)aString;
  49.  
  50. // AppKit support
  51.  
  52. // Browser delegate code from Steve Hayman, taken from code by Jeff Martin
  53. - (int)browser:sender fillMatrix:matrix inColumn:(int)column;
  54.  
  55. @end
  56.