knowsPageRange:
-(BOOL)knowsPageRange:(NSRangePointer)aRange:
解説
ページ範囲を知っているかを返します。
返り値
( BOOL )
メニュー
引数
( NSRangePointer )aRange
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSRange rPointer = NSMakeRange(0,0); if ([sender knowsPageRange : &rPointer ]) { NSLog(@"YES"); NSLog([NSString stringWithFormat:@"%d,%d",rPointer.location,rPointer.length]); }else{ NSLog(@"NO"); } } @end