instanceMethodSignatureForSelector:
フレームワーク
Foundation
クラス
NSObject
Class Methods
使用可能
10.0
参照
- methodSignatureForSelector:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { unsigned int num; num = [[[NSButton class] instanceMethodSignatureForSelector:@selector(allowsMixedState)] numberOfArguments]; NSLog([NSString stringWithFormat:@"%d",num]); } @end