macOS/iOS API解説

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

目次

initWithPasteboard:

ペーストボードからNSImageを作って初期化する
-(id)initWithPasteboard:(NSPasteboard *)pasteboard:

解説

ペーストボードからNSImageを初期化して返します。
サポートされる初期設定のタイプ
● NSPostscriptPboardType(NSEPSImageRep)
● NSPDFPboardType(NSPDFImageRep)
● NSPICTPboardType(NSPICTImageRep)
● NSTIFFPboardType(NSBitmapImageRep)
初期化することができなければnilを返します。

返り値

( id )

画像

引数

( NSPasteboard * )pasteboard

ペーストボード

フレームワーク

ApplicationKit

クラス

NSImage

Instance Methods

使用可能

10.0

参照

例文

[[self image] initWithPasteboard: [sender draggingPasteboard]];