home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Languages / python / PyObjC-0.47-MIHS / pyobjc-0.47-src / Include / OC_Pasteboard.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-14  |  2.0 KB  |  78 lines

  1. /* Copyright (c) 1996 by Lele Gaifax.  All Rights Reserved
  2.  *
  3.  * This software may be used and distributed freely for any purpose
  4.  * provided that this notice is included unchanged on any and all
  5.  * copies. The author does not warrant or guarantee this software in
  6.  * any way.
  7.  *
  8.  * This file is part of PyObjC package.
  9.  *
  10.  * $RCSfile: OC_Pasteboard.h,v $
  11.  * $Revision: 1.4 $
  12.  * $Date: 1996/11/15 02:33:38 $
  13.  *
  14.  * Created Thu Oct 17 16:40:09 1996.
  15.  */
  16.  
  17. #ifndef _OC_Pasteboard_H
  18. #define _OC_Pasteboard_H
  19.  
  20. #ifdef GNU_RUNTIME
  21. #ifndef WITH_FOUNDATION
  22. #define WITH_FOUNDATION
  23. #endif
  24. #include <appkit/NSPasteboard.h>
  25. #define OC_PASTEBOARD_SUPER_CLASS NSPasteboard
  26. #define OC_PASTEBOARD_STRING NSString
  27. #else
  28. #include <objc/List.h>
  29. #include <appkit/Pasteboard.h>
  30. #define OC_PASTEBOARD_SUPER_CLASS Pasteboard
  31. #define OC_PASTEBOARD_STRING const char 
  32. #endif
  33.  
  34. // This is needed only to avoid -ObjC link flag.
  35. extern void oc_pasteboard_ensure_link();
  36.  
  37. #include "OC_Stream.h"
  38.  
  39. @class OC_PythonObject;
  40.  
  41. @interface OC_PASTEBOARD_SUPER_CLASS (OC_Pasteboard)
  42.  
  43. #ifndef WITH_FOUNDATION
  44.  
  45. /*#M Return the unique pasteboard object named @var{name}. */
  46. + (OC_PASTEBOARD_SUPER_CLASS *) pasteboardWithName:(OC_PASTEBOARD_STRING *) name;
  47.  
  48. /*#M Read from the pasteboard an object of type @var{type}, and return
  49.   it as an @code{OC_Stream} under NeXTSTEP, or as a @code{NSData} under
  50.   OpenStep. */
  51. - (OC_Stream *) dataForType:(OC_PASTEBOARD_STRING *) type;
  52.  
  53. /*#M Write @var{data}, of type @var{dataType}, to the
  54.   pasteboard. @var{data} must be an @code{OC_Stream}, but under
  55.   OpenStep it may actually be a @code{NSData} instance. */
  56. - (BOOL) setData:(OC_PythonObject *) data
  57.      forType:(OC_PASTEBOARD_STRING *) dataType;
  58.  
  59. /*#M Return the list of acceptable types as a List, instead of a C array. */
  60. - (List *) listOfTypes;
  61.  
  62. #else
  63.  
  64. /*#M Same as @code{[self types]}. */
  65. - (NSArray *) listOfTypes;
  66.  
  67. #endif
  68.  
  69. @end
  70.  
  71. #endif /* _OC_Pasteboard_H */
  72.  
  73. /*
  74. ** Local Variables:
  75. ** change-log-default-name:"../ChangeLog.PyObjC"
  76. ** End:
  77. */
  78.