home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / NXSelection.h < prev    next >
Text File  |  1991-12-15  |  1KB  |  46 lines

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