macOS/iOS API解説

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

目次

drawInteriorWithFrame:inView:

セルの内側を描くときに呼ばれます
-(void)drawInteriorWithFrame:(NSRect)cellFrame:
         inView:(NSView *)controlView:

解説

セルの内側を描くときに呼ばれます。サブクラスでオーバーライドできます。

返り値

( void )

なし

引数

( NSRect )cellFrame

範囲

( NSView * )controlView

コントロールビュー

フレームワーク

ApplicationKit

クラス

NSCell

Instance Methods

使用可能

10.0

参照

- isHighlighted
- setShowsFirstResponder:

例文

#import "MyButtonCell.h"

@implementation MyButtonCell

-(void)drawInteriorWithFrame:(NSRect)cellFrame inView:(NSView *)controlView
{
NSLog(@"drawInteriorWithFrame");
[super drawInteriorWithFrame:cellFrame inView:controlView];
}

@end