Next Page > Hide TOC

NSURL Additions Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/AppKit.framework
Declared in
NSPasteboard.h

Overview

The Application Kit extends Foundation’s NSURL class by adding support for pasteboards. NSWorkspace provides openURL: to open a location specified by a URL.

Tasks

Working with Pasteboards

Class Methods

URLFromPasteboard:

Reads an NSURL object off of pasteboard. Returns nil if pasteboard does not contain data of type NSURLPboardType.

+ (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard

Availability
See Also
Related Sample Code
Declared In
NSPasteboard.h

Instance Methods

writeToPasteboard:

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

Availability
See Also
Declared In
NSPasteboard.h

Next Page > Hide TOC


© 2006 Apple Computer, Inc. All Rights Reserved. (Last updated: 2006-05-23)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.