URLFromPasteboard:
ペーストボードのURLを読んでURLオブジェクトを返します
+(NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard:
解説
ペーストボードのURLを読んでURLオブジェクト(NSURL)を返します。
返り値
( NSURL * )
URL
引数
( NSPasteboard * )pasteboard
ペーストボード
フレームワーク
ApplicationKit
クラス
NSURLAdditions
Class Methods
使用可能
10.0
参照
- writeToPasteboard:
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSURL *fileURL; fileURL=[NSURL URLFromPasteboard:[NSPasteboard generalPasteboard]]; } @end