This is MOClassVariable.h in view mode; [Download] [Up]
// MOClassVariable.h
//
// by Mike Ferris
// Part of MOKit
// Copyright 1993, all rights reserved.
// ABOUT MOKit
//
// MOKit is a collection of useful and general objects. Permission is
// granted by the author to use MOKit in your own programs in any way
// you see fit. All other rights to the kit are reserved by the author
// including the right to sell these objects as part of a LIBRARY or as
// SOURCE CODE. In plain English, I wish to retain rights to these
// objects as objects, but allow the use of the objects as pieces in a
// fully functional program. NO WARRANTY is expressed or implied. The author
// will under no circumstances be held responsible for ANY consequences to
// you from the use of these objects. Since you don't have to pay for
// them, and full source is provided, I think this is perfectly fair.
// ABOUT MOClassVariable
//
// MOClassVariable provides for better class variables than plain old
// static variables in the .m file. You make a MOClassVar by declaring
// a static variable, but then the class handles keeping separate values
// of the variable for the class itself and for any of its subclasses.
// Values must be objects currently.
#import <appkit/appkit.h>
@interface MOClassVariable:Object
{
HashTable *ht;
BOOL doesFreeValues;
}
+ initialize;
- init;
- initDoesFreeValues:(BOOL)flag;
- free;
- setObject:obj forClass:(Class)class;
- getObjectForClass:(Class)class;
@end
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.