home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OpenStep 4.2J (Developer)
/
os42jdev.iso
/
NextDeveloper
/
OpenStepConversion
/
IntermediateFrameworks3
/
AppKit.framework
/
Headers
/
NSSelection.h
< prev
next >
Wrap
Text File
|
1994-11-15
|
1KB
|
44 lines
/*
NXSelection
Application Kit, Release 3.0
Copyright (c) 1991, NeXT, Inc. All rights reserved.
*/
#import <Foundation/NSObject.h>
#import "NSPasteboard.h"
@class NSData;
extern NSString *NSGeneralPboardType;
@interface NSSelection : NSObject {
/* these instance variables are NOT part of the API, are subject to change in future releases */
@private
void *data;
unsigned short length;
struct _selFlags {
unsigned int freeData:1;
unsigned int isMagic:1;
unsigned int RESERVED:14;
} selFlags;
unsigned int _reservedSel1;
}
/* these methods return special objects that indicate special selections */
+ emptySelection; /* nothing selected */
+ allSelection; /* the result of a select all */
+ currentSelection; /* whatever is currently selected */
/* if count is -1, the data is assumed to be terminated by a zero byte */
/* data should be architecture independant and include a version stamp */
- initWithDescriptionData:(NSData *)desc;
- initWithDescriptionData:(NSData *)desc;
- initFromPasteboard:(NSPasteboard *)pasteboard;
- (NSData *)descriptionData;
- writeToPasteboard:(NSPasteboard *)pasteboard;
- (BOOL)isWellKnownSelection;
@end