autoscroll:
イベントの場所まで自動スクロールします
-(BOOL)autoscroll:(NSEvent *)theEvent:
解説
イベントの場所まで自動スクロールします。
返り値
( BOOL )
YES/NO
引数
( NSEvent * )theEvent
イベント
フレームワーク
ApplicationKit
クラス
NSView
Instance Methods
使用可能
10.0
参照
- autoscroll:(NSClipView)
-scrollPoint:
-isDescendantOf:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { int eventNumber = 10; int trackingNumber = 20; void *uData ; NSString *str1 = [NSMutableString stringWithString:@"string"]; uData = (void *)[str1 cString]; NSEvent* event = [NSEvent enterExitEventWithType:NSMouseEntered location:NSMakePoint(400,200) modifierFlags:nil timestamp:nil windowNumber:nil context:nil eventNumber:eventNumber trackingNumber:trackingNumber userData:uData ]; [view autoscroll:event]; } @end