MOAllClasses |
MOKIT_EXTERN NSArray *MOAllClasses( );
MOAllClassesImplementingFactorySelector |
MOKIT_EXTERN NSArray * MOAllClassesImplementingFactorySelector( SEL selector );
Given a selector, this function returns an array of all the classes whose factories (class objects) respond to that selector. This function will never return _NSZombie or Object or any subclasses of Object. It will never return any classes that do not implement +retain and +release.
- selector
- The selector.
MOAllClassesImplementingInstanceSelector |
MOKIT_EXTERN NSArray * MOAllClassesImplementingInstanceSelector( SEL selector );
Given a selector, this function returns an array of all the classes whose instances respond to that selector. This function will never return _NSZombie or Object or any subclasses of Object. It will never return any classes that do not implement +retain and +release.
- selector
- The selector.
MOFullMethodName |
MOKIT_EXTERN NSString *MOFullMethodName( id self, SEL _cmd );
Given an object and a selector (usually passed as "self" and "_cmd"), this returns a pretty-formatted method name, suitable for error or log output. The result is of the form "-[NSString count]".
- self
- The object used to determine the class for the output.
- _cmd
- The selector used to determine the method for the output.
MOKitAllowsMethodReplacement |
MOKIT_EXTERN BOOL MOKitAllowsMethodReplacement( );
Returns whether MOKit itself should enable features depending of method replacement. Note that this has no affect on the function of the method replacement API itself. Clients of MOKit may replace methods as they see fit, but any features of MOKit itself that use method replacement check this function. The function in turn looks at the value of the MOKitAllowsMethodReplacement user default which is YES by default. If it is set to NO, then MOKit will disable all method replacement features.
MOKitSetAllowsMethodReplacement |
MOKIT_EXTERN void MOKitSetAllowsMethodReplacement( BOOL flag );
Sets whether MOKit itself should enable features depending of method replacement. Note that this has no affect on the function of the method replacement API itself. Clients of MOKit may replace methods as they see fit, but any features of MOKit itself that use method replacement will obey this setting. The function sets the value of the MOKitAllowsMethodReplacement user default which is YES by default. If it is set to NO, then MOKit will disable all method replacement features.
Note that since method replacement takes place at launch time for applications linked with MOKit and that it is not easily undoable, changes to this setting will take effect only the next time the application is launched.
- flag
- YES if method replacement should be allowed, NO if not.
(Last Updated 3/20/2005)