abortEditing
レシーバのテキスト編集を中断します
解説
レシーバのテキスト編集を中断します。
編集中であれば、元の状態に戻します。
返り値
( BOOL )
テキストの編集を中断したかYES/NO
引数
フレームワーク
ApplicationKit
クラス
NSControl
Instance Methods
使用可能
10.0
参照
- currentEditor
- validateEditing
例文
#import "scriptSend.h" @implementation scriptSend - (IBAction)myAction:(id)sender { //myOutletはtextfield if ([myOutlet abortEditing]){ NSLog(@"YES"); }else{ NSLog(@"NO"); } } @end