macOS/iOS API解説

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

目次

NSGestureRecognizerクラス

INDEX>AppKit>

作成中です。
継承 NSObject
NSGestureRecognizer
NSClickGestureRecognizer
NSMagnificationGestureRecognizer
NSPanGestureRecognizer
NSPressGestureRecognizer
NSRotationGestureRecognizer
準拠 NSObject (NSObject)
NSCoding
フレームワーク /System/Library/Frameworks/AppKit.framework
使用可能 OS X 10.10以降
定義
インポート文 @import AppKit;

概要

メソッドとプロパティ

Initializing a Gesture Recognizer

- initWithTarget:action:
Designated Initializer

Accessing the Target and Action

action
target

Getting the Location of Events

- locationInView:

Accessing the Recognizer’s State

state
view
enabled

Delaying Events

delaysPrimaryMouseButtonEvents
delaysSecondaryMouseButtonEvents
delaysOtherMouseButtonEvents
delaysKeyEvents
delaysMagnificationEvents
delaysRotationEvents

Accessing the Delegate

delegate

Methods for Subclasses

- reset
- mouseDown:
- mouseDragged:
- mouseUp:
- otherMouseDown:
- otherMouseDragged:
- otherMouseUp:
- rightMouseDown:
- rightMouseDragged:
- rightMouseUp:
- magnifyWithEvent:
- rotateWithEvent:
- canBePreventedByGestureRecognizer:
- canPreventGestureRecognizer:
- shouldBeRequiredToFailByGestureRecognizer:
- shouldRequireFailureOfGestureRecognizer:
- keyDown:
- keyUp:
- tabletPoint:
- flagsChanged:
- pressureChangeWithEvent:

Configuring Pressure

pressureConfiguration

Constants

NSGestureRecognizerState



定数

参照

更新時バージョン

OS X 10.11