sendAction:to:forAllCells:
マトリックスに指定したオブジェクトへメッセージを送信させます
-(void)sendAction:(SEL)aSelector: to:(id)anObject: forAllCells:(BOOL)flag:
解説
マトリックスに指定したオブジェクト(anObject)へメッセージ(aSelector)を送信させます。
返り値
( void )
なし
フレームワーク
ApplicationKit
クラス
NSMatrix
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject -(void)matrixact:(id)sender { [myOutlet sendAction:@selector(matbut:) to: self forAllCells:YES]; } - (IBAction)myAction:(id)sender { [myOutlet setDoubleAction:@selector(doubleAction:)]; NSLog(NSStringFromSelector([myOutlet doubleAction])); } -(void)doubleAction:(id)sender { NSLog(@"!!!"); } -(void)matbut:(id)sender { NSLog(@"matbut"); } @end