2011-07-31 10 views

答えて

16

Appleが読み文字列のあなたが探しているメインクラスがNSPasteboard

例ですPasteboard Programming Guideあり

NSPasteboard *pasteboard = <#Get a pasteboard#>; 
NSArray *classes = [[NSArray alloc] initWithObjects:[NSString class], nil]; 
NSDictionary *options = [NSDictionary dictionary]; 
NSArray *copiedItems = [pasteboard readObjectsForClasses:classes options:options]; 
if (copiedItems != nil) { 
    // Do something with the contents... 
です