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

  1. /* ClassAdditions.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/Object.h>
  10.  
  11. @interface Object (ClassAdditions)
  12.  
  13. typedef int (CAObjectFilterFunc)(id son, id father);
  14. typedef int (CAElementFilterFunc)(id aClass, SEL aSelector);
  15.  
  16. + (int)subclasses:(id)list allowPosers:(BOOL)yn
  17.                         filterWith:(CAObjectFilterFunc)aFunc;
  18. + (int)methodSelectors:(id)storage includeAncestors:(BOOL)yn
  19.                         filterWith:(CAElementFilterFunc)aFunc;
  20.  
  21. @end
  22.