home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1994 June / NEBULA_SE.ISO / SourceCode / MiscKit / Headers / misckit / MiscStringArray.h < prev    next >
Encoding:
Text File  |  1994-03-23  |  1.3 KB  |  50 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.0.  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. - insertString:(const char *)aString at:(unsigned int)index;
  42.  
  43. - (unsigned int)stringCount;
  44. - (unsigned int)count;    // same thing as above
  45. - (const char **)stringArray;
  46. - (const char *)stringAt:(unsigned int)index;
  47. - (unsigned int)indexOfString:(const char *)aString;
  48.  
  49. @end
  50.