drawDividerInRect:
区切りを描きます
-(void)drawDividerInRect:(NSRect)aRect:
解説
区切りを描きます。
初期設定は、区切りの中心に「つまみ」を表示します。
サブクラスでオーバーライドして自由に描画できます。
返り値
( void )
なし
引数
( NSRect )aRect
矩形
フレームワーク
ApplicationKit
クラス
NSSplitView
Instance Methods
使用可能
10.0
参照
例文
#import "MySplitView.h" @implementation MySplitView -(void)drawDividerInRect:(NSRect)aRect { NSBezierPath *thePath = [NSBezierPath bezierPath]; [thePath appendBezierPath:[NSBezierPath bezierPathWithRect:NSMakeRect(aRect.origin.x+1,aRect.origin.y+1,aRect.size.width-2,aRect.size.height-2)]]; [[NSColor redColor] set]; [thePath stroke]; } @end