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

  1. //
  2. //    MiscProtocols.h -- various protocols used by the foundation classes
  3. //        Written by Doug McClure Copyright (c) 1994 by Doug McClure.
  4. //                Version 1.0.  All rights reserved.
  5. //
  6. //        This notice may not be removed from this source code.
  7. //
  8. //    This object is included in the MiscKit by permission from the author
  9. //    and its use is governed by the MiscKit license, found in the file
  10. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  11. //    for a list of all applicable permissions and restrictions.
  12. //    
  13.  
  14. #import <objc/objc.h>    // definition of BOOL
  15.  
  16. @protocol MiscCompare
  17.  
  18. - (int)compare:anObject;
  19. - (int)compare:anObject ignoreCase:(BOOL)flag;
  20. - (int)compare:anObject length:(unsigned long)length;
  21. - (int)compare:anObject length:(unsigned long)length ignoreCase:(BOOL)flag;
  22. - (int)compareLiteral:(const char *)literal;
  23. - (int)compareLiteral:(const char *)literal ignoreCase:(BOOL)flag;
  24. - (int)compareLiteral:(const char *)literal length:(unsigned long)length;
  25. - (int)compareLiteral:(const char *)literal length:(unsigned long)length ignoreCase:(BOOL)flag;
  26.  
  27. @end
  28.  
  29.  
  30. @protocol MiscEndCompare
  31.  
  32. - (int)endCompare:anObject;
  33. - (int)endCompare:anObject ignoreCase:(BOOL)flag;
  34. - (int)endCompare:anObject length:(unsigned long)length;
  35. - (int)endCompare:anObject length:(unsigned long)length ignoreCase:(BOOL)flag;
  36. - (int)endCompareLiteral:(const char *)literal;
  37. - (int)endCompareLiteral:(const char *)literal ignoreCase:(BOOL)flag;
  38. - (int)endCompareLiteral:(const char *)literal length:(unsigned long)length;
  39. - (int)endCompareLiteral:(const char *)literal length:(unsigned long)length ignoreCase:(BOOL)flag;
  40.  
  41. @end
  42.  
  43.  
  44. @protocol MiscListCursorPositioning
  45.  
  46. - (unsigned int)currentPosition;
  47. - setFirstObject;
  48. - setLastObject;
  49. - setNextObject;
  50. - setPreviousObject;
  51. - setTo:(unsigned int)aPosition;
  52.  
  53. @end
  54.  
  55.  
  56. @protocol MiscStorageCursorPositioning
  57.  
  58. - (unsigned int)currentPosition;
  59. - (void *)setFirstElement;
  60. - (void *)setLastElement;
  61. - (void *)setNextElement;
  62. - (void *)setPreviousElement;
  63. - (void *)setTo:(unsigned int)aPosition;
  64.  
  65. @end
  66.