home *** CD-ROM | disk | FTP | other *** search
- /*
- * This Application subclass provides support for NSAutoreleasePools.
- * If you have an application that uses Foundation but not EOF you
- * need to make this class your Application class, otherwise your
- * application will have a lot of serious memory leaks.
- *
- * No guarantee is made for the fitness of this code for any particular
- * use. No warranty expressed or implied. Use at your own risk!
- *
- * Randy Tidd
- * NeXT Premium Developer Support
- */
- #import <appkit/appkit.h>
- #import <foundation/NSAutoreleasePool.h>
-
- @interface PoolApplication : Application
- {
- NSAutoreleasePool *autoreleasePool;
- int disableCount;
- }
-
- + new;
- - sendEvent:(NXEvent *)event;
- - (int)runModalSession:(NXModalSession *)session;
- - (int)runModalFor:theWindow;
-
- @end
-