editWithFrame:inView:editor:delegate:event:
フレームの編集を開始します
-(void)editWithFrame:(NSRect)aRect: inView:(NSView *)controlView: editor:(NSText *)textObj: delegate:(id)anObject: event:(NSEvent *)theEvent:
解説
mousedownを通じて呼び出されます。
フレームの編集を開始します。
返り値
( void )
なし
引数
( NSRect )aRect
範囲
( NSView * )controlView
コントロールビュー
( NSText * )textObj
テキスト
( id )anObject
デリゲート
( NSEvent * )theEvent
イベント
フレームワーク
ApplicationKit
クラス
NSCell
Instance Methods
使用可能
10.0
参照
- endEditing:
- selectWithFrame:inView:editor:delegate:start:length:
例文
#import "MyTextFieldCell.h" @implementation MyTextFieldCell -(void)mouseDown:(NSEvent *)theEvent { NSLog(@"mouseDown"); [self editWithFrame:NSMakeRect(0,0,100,100) inView:[[theEvent window] contentView] editor:nil delegate:self event:theEvent]; } -(void) editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent { NSLog([theEvent description]); [super editWithFrame:aRect inView:controlView editor:textObj delegate:anObject event:theEvent]; } @end