(Preliminary Documentation) Copyright ã1994 by NeXT Computer, Inc.  All Rights Reserved.

NSSelection 

Inherits From:	NSObject

Conforms To:	NSCopying

Declared In:	appkit/NSSelection.h

Returning Special Selections

+ (NSSelection *)allSelection	Returns the shared instance of the well-known selection representing the entire document.
+ (NSSelection *)currentSelection	Returns the shared instance of the well-known selection representing the abstract concept of the current selection.
+ (NSSelection *)emptySelection	Returns the shared instance of the well-known selection representing no data.

Creating and Initializing a Selection

+ (NSSelection *)selectionWithDescriptionData:(NSData *)data
	Creates and returns an Selection object that records data as the description of the selection.
- (id)initWithDescriptionData:(NSData *)newData
	Initializes a newly allocated Selection object that records data as the description of the selection.  Returns the initialized object.
- (id)initWithPasteboard:(NSPasteboard *)pasteboard
	Initializes a newly allocated Selection object that takes its description of the selection from pasteboard.  Returns the initialized object.

Describing a Selection

- (NSData *)descriptionData	Returns the data that describes the selection.

Comparing Selections

- (BOOL)isWellKnownSelection	Returns YES if the receiver is one of the well-known selection types (those representing the entire document, current selection, or empty selection).

Writing the Selection to the Pasteboard

- (void)writeToPasteboard:(NSPasteboard *)pasteboard
	Writes the selection data to the pasteboard pasteboard.