macOS/iOS API解説

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

目次

NSEvent

context

レシーバーのディスプレイコンテキストを返します 解説 レシーバーのディスプレイコンテキストを返します。 返り値 ( NSGraphicsContext * ) ディスプレイ・コンテキスト 引数 フレームワーク ApplicationKit クラス NSEvent Instance Methods 使用可能 10.0…

clickCount

マウスクリックが何回目かを返します 解説 マウスクリックが何回目かを返します マウスイベントでなければNSInternalInconsistencyExceptionを起こします。 返り値 ( int ) 整数値 引数 フレームワーク ApplicationKit クラス NSEvent Instance Methods 使用…

charactersIgnoringModifiers

イベントのモディファイキーを除いた(シフトキーは有効)文字を返します 解説 イベントのモディファイキーを除いた(シフトキーは有効)文字を返します。 キーイベントでなければNSInternalInconsistencyExceptionを起こします。 返り値 ( NSString * ) 文…

characters

キーイベントの文字を返します 解説 キーイベントの文字を返します。 返り値 ( NSString * ) 文字 引数 フレームワーク ApplicationKit クラス NSEvent Instance Methods 使用可能 10.0 参照 - charactersIgnoringModifiers + keyEventWithType:location:mod…

stopPeriodicEvents

周期的なイベントを中止します 解説 周期的なイベントを中止します。 返り値 ( void ) なし 引数 フレームワーク ApplicationKit クラス NSEvent Class Methods 使用可能 10.0 参照 + startPeriodicEventsAfterDelay:withPeriod: 例文 [NSEvent stopPeriodic…

startPeriodicEventsAfterDelay:withPeriod:

一定の時間をおいた後周期的なイベントを送信します。 +(void)startPeriodicEventsAfterDelay:(NSTimeInterval)delaySeconds: withPeriod:(NSTimeInterval)delaySeconds: 解説 一定の時間をおいた後周期的なイベントを送信します。マウスドラッグなどに使わ…

otherEventWithType:location:modifierFlags:timestamp:windowNumber:context:subtype:data1:data2:

カスタムイベントを作って返します +(NSEvent *)otherEventWithType:(NSEventType)type: location:(NSPoint)location: modifierFlags:(unsigned int)flags: timestamp:(NSTimeInterval)time: windowNumber:(int)windowNum: context:(NSGraphicsContext *)con…

mouseLocation

スクリーン座標で、現在のマウス位置を返します 解説 スクリーン座標で、現在のマウス位置を返します。 返り値 ( NSPoint ) マウス位置 引数 フレームワーク ApplicationKit クラス NSEvent Class Methods 使用可能 10.0 参照 例文 #import "MyScrollView.h"…

mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:

マウスイベントを作って返します +(NSEvent *)mouseEventWithType:(NSEventType)type: location:(NSPoint)location: modifierFlags:(unsigned int)flags: timestamp:(NSTimeInterval)time: windowNumber:(int)windowNum: context:(NSGraphicsContext *)conte…

keyEventWithType:location:modifierFlags:timestamp:windowNumber:context:characters:charactersIgnoringModifiers:isARepeat:keyCode:

キーイベントを作って返します +(NSEvent *)keyEventWithType:(NSEventType)type: location:(NSPoint)location: modifierFlags:(unsigned int)flags: timestamp:(NSTimeInterval)time: windowNumber:(int)windowNum: context:(NSGraphicsContext *)context: …

enterExitEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:trackingNumber:userData:

マウストラックイベントを作って返します +(NSEvent *)enterExitEventWithType:(NSEventType)type: location:(NSPoint)location: modifierFlags:(unsigned int)flags: timestamp:(NSTimeInterval)time: windowNumber:(int)windowNumber: context:(NSGraphics…