macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

protocolCheckerWithTarget:protocol:

調査中
+(id)protocolCheckerWithTarget:(NSObject *)anObject:
             protocol:(Protocol *)aProtocol:

解説

調査中
オブジェクトとプロトコルでプロトコルチェッカーを返します。

返り値

( id )

プロトコル・チェッカー

引数

( NSObject * )anObject

オブジェクト

( Protocol * )aProtocol

プロトコル

クラス

NSProtocolChecker

Class Methods

使用可能

10.0

参照

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{
NSProtocolChecker *pChecker =
        [NSProtocolChecker protocolCheckerWithTarget:self
            protocol:@protocol(NSObject)];
        

}

@end