Version: 35304
Date: 2012-07-20 05:43:58 +0100 (Fri, 20 Jul 2012)
Copyright: (C) 1995 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSProtocolChecker.h
NSProtocolChecker instance with the
protocol and the object as arguments-
id versatileObject = [[ClassWithManyMethods alloc] init];
id narrowObject = [NSProtocolChecker protocolCheckerWithTarget: versatileObject
protocol: @protocol(SomeSpecificProtocol)];
return narrowObject;
This is often used in conjunction with distributed
objects to expose only a subset of an objects methods
to remote processes
NSInvalidArgumentException.