Inherits from | |
Conforms to | |
Framework | /System/Library/Frameworks/AppKit.framework |
Declared in | NSPasteboard.h |
The Application Kit extends Foundation’s NSURL class by adding support for pasteboards. NSWorkspace provides openURL:
to open a location specified by a URL.
Reads an NSURL object off of pasteboard. Returns nil
if pasteboard does not contain data of type NSURLPboardType
.
+ (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard
NSPasteboard.h
Writes the receiver to pasteboard. You must declare an NSURLPboardType
data type for pasteboard before invoking this method; otherwise it returns without doing anything.
- (void)writeToPasteboard:(NSPasteboard *)pasteboard
+ URLFromPasteboard:
– declareTypes:owner:
(NSPasteboard)NSPasteboard.h
© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)