currentContext
現在のスレッドの現在のグラフィックスコンテキストを返します
解説
現在のスレッドの現在のグラフィックスコンテキストを返します。
返り値
( NSGraphicsContext * )
グラフィックス・コンテキスト
引数
フレームワーク
ApplicationKit
クラス
NSGraphicsContext
Class Methods
使用可能
10.0
参照
例文
NSGraphicsContext *currentContext = [NSGraphicsContext currentContext];
//Carbonで使うとき
CGContextRef myCGContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];