home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / AppKit.framework / Headers / NSSelection.h < prev    next >
Text File  |  1994-11-15  |  1KB  |  44 lines

  1. /*
  2.     NXSelection
  3.     Application Kit, Release 3.0
  4.     Copyright (c) 1991, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <Foundation/NSObject.h>
  8. #import "NSPasteboard.h"
  9. @class NSData;
  10.  
  11. extern NSString *NSGeneralPboardType;
  12.  
  13. @interface NSSelection : NSObject {
  14.   /* these instance variables are NOT part of the API, are subject to change in future releases */
  15.   @private
  16.     void *data;
  17.     unsigned short length;
  18.     struct _selFlags {
  19.     unsigned int freeData:1;
  20.     unsigned int isMagic:1;
  21.     unsigned int RESERVED:14;
  22.     } selFlags;
  23.     unsigned int _reservedSel1;
  24. }
  25.  
  26. /* these methods return special objects that indicate special selections */
  27. + emptySelection;        /* nothing selected */
  28. + allSelection;            /* the result of a select all */
  29. + currentSelection;        /* whatever is currently selected */
  30.  
  31. /* if count is -1, the data is assumed to be terminated by a zero byte */
  32. /* data should be architecture independant and include a version stamp */
  33. - initWithDescriptionData:(NSData *)desc;
  34. - initWithDescriptionData:(NSData *)desc;
  35. - initFromPasteboard:(NSPasteboard *)pasteboard;
  36.  
  37. - (NSData *)descriptionData;
  38.  
  39. - writeToPasteboard:(NSPasteboard *)pasteboard;
  40.  
  41. - (BOOL)isWellKnownSelection;
  42.  
  43. @end
  44.