Up

NSProtocolChecker class reference

Authors

Mike Kienenberger

Version: 1.17

Date: 2004/04/25 11:08:52

Copyright: (C) 1995 Free Software Foundation, Inc.

Software documentation for the NSProtocolChecker class

NSProtocolChecker : NSProxy

Declared in:
Foundation/NSProtocolChecker.h
Standards:

Description forthcoming.



Instance Variables for NSProtocolChecker Class

_myProtocol

@private Protocol* _myProtocol;

Description forthcoming.


_myTarget

@private NSObject* _myTarget;

Description forthcoming.





Method summary

protocolCheckerWithTarget: protocol: 

+ (id) protocolCheckerWithTarget: (NSObject*)anObject protocol: (Protocol*)aProtocol;

Allocates and initializes an NSProtocolChecker instance by calling -initWithTarget:protocol:
Autoreleases and returns the new instance.


forwardInvocation: 

- (void) forwardInvocation: (NSInvocation*)anInvocation;

Description forthcoming.


initWithTarget: protocol: 

- (id) initWithTarget: (NSObject*)anObject protocol: (Protocol*)aProtocol;

Initializes a newly allocated NSProtocolChecker instance that will forward any messages in the aProtocol protocol to anObject, its delegate. Thus, the checker can be vended in lieu of anObject to restrict the messages that can be sent to anObject. If any method in the protocol returns anObject, the checker will replace the returned value with itsself rather than the target object.
Returns the new instance.


protocol 

- (Protocol*) protocol;

Returns the protocol object the checker uses to verify whether a given message should be forwarded to its delegate.


target 

- (NSObject*) target;

Returns the target of the NSProtocolChecker.



Up