macOS/iOS API解説

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

目次

selectWithFrame:inView:editor:delegate:start:length:

フレームが選択された時に呼び出されます
-(void)selectWithFrame:(NSRect)aRect:
         inView:(NSView *)controlView:
         editor:(NSText *)textObj:
         delegate:(id)anObject:
         start:(int)selStart:
         length:(int)selLength:

解説

フレームが選択された時に呼び出されます。

返り値

( void )

なし

引数

( NSRect )aRect

範囲

( NSView * )controlView

コントロールビュー

( NSText * )textObj

テキスト

( id )anObject

デリゲート

( int )selStart

開始位置

( int )selLength

範囲

フレームワーク

ApplicationKit

クラス

NSCell

Instance Methods

使用可能

10.0

参照

例文

#import "MyTextFieldCell.h"

@implementation MyTextFieldCell

-(void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(int)selStart length:(int)selLength
{
NSLog([NSString stringWithFormat:@"%@,%d,%d",[textObj className],selStart,selLength]);

[super selectWithFrame:aRect inView:controlView editor:textObj delegate:anObject start:selStart length:selLength];
}
@end