home *** CD-ROM | disk | FTP | other *** search
/ MacHack 2000 / MacHack 2000.toast / pc / The Hacks / Genie / Projects / Pedestal / Source / Includes / XObject.hh < prev   
Encoding:
Text File  |  2000-06-24  |  508 b   |  23 lines

  1. /* XObject.hh */
  2.  
  3. #pragma once
  4.  
  5. // We can't include this because it's a subclass, and it's including us.
  6. class XAutoReleasePool;
  7.  
  8. class XObject {
  9. public:
  10.     XObject();
  11.     virtual ~XObject() {}
  12.     virtual XObject *retain();
  13.     virtual XObject *release();
  14.     virtual XObject *autorelease();
  15.     static XAutoReleasePool &AutoReleasePool();
  16.     static void SetAutoReleasePool(XAutoReleasePool *inPool);
  17. protected:
  18.     static XAutoReleasePool sDefaultPool, *sAutoReleasePool;
  19. protected:
  20.     long retainCount;
  21.     bool autoReleaseFlag;
  22. };
  23.