initWithScrollView:orientation:
指定したスクロールビューに、指定した向きの定規を初期化して返します
-(id)initWithScrollView:(NSScrollView *)aScrollView: orientation:(NSRulerOrientation)orientation:
解説
指定したスクロールビューに、指定した向きの定規を初期化して返します。
【NSRulerOrientation】
● NSHorizontalRuler 水平
● NSVerticalRuler 垂直
返り値
( id )
ルーラービュー
引数
( NSScrollView * )aScrollView
スクロールビュー
( NSRulerOrientation )orientation
定規の向き
フレームワーク
ApplicationKit
クラス
NSRulerView
Instance Methods
使用可能
10.0
参照
例文
NSRulerView *rView = [[[NSRulerView alloc] initWithScrollView: [myOutlet enclosingScrollView] orientation:NSVerticalRuler] autorelease];