NSPasteboardItem.inc 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. { Parsed from AppKit.framework NSPasteboardItem.h }
  2. {$ifdef TYPES}
  3. type
  4. NSPasteboardItemPtr = ^NSPasteboardItem;
  5. NSPasteboardItemDataProviderProtocolPtr = ^NSPasteboardItemDataProviderProtocol;
  6. {$endif}
  7. {$ifdef CLASSES}
  8. type
  9. NSPasteboardItem = objcclass external (NSObject, NSPasteboardWritingProtocol, NSPasteboardReadingProtocol)
  10. private
  11. _pasteboard: NSPasteboard;
  12. _index: NSUInteger;
  13. _gen: NSInteger;
  14. _auxObject: id;
  15. _reserved: pointer;
  16. public
  17. function types: NSArray; message 'types';
  18. function availableTypeFromArray (types_: NSArray): NSString; message 'availableTypeFromArray:';
  19. function setDataProvider_forTypes (dataProvider: NSPasteboardItemDataProviderProtocol; types_: NSArray): ObjCBOOL; message 'setDataProvider:forTypes:';
  20. function setData_forType (data: NSData; type_: NSString): ObjCBOOL; message 'setData:forType:';
  21. function setString_forType (string_: NSString; type_: NSString): ObjCBOOL; message 'setString:forType:';
  22. function setPropertyList_forType (propertyList: id; type_: NSString): ObjCBOOL; message 'setPropertyList:forType:';
  23. function dataForType (type_: NSString): NSData; message 'dataForType:';
  24. function stringForType (type_: NSString): NSString; message 'stringForType:';
  25. function propertyListForType (type_: NSString): id; message 'propertyListForType:';
  26. { Adopted protocols }
  27. function initWithPasteboardPropertyList_ofType (propertyList: id; type_: NSString): id; message 'initWithPasteboardPropertyList:ofType:';
  28. function pasteboardPropertyListForType (type_: NSString): id; message 'pasteboardPropertyListForType:';
  29. class function readableTypesForPasteboard (pasteboard: NSPasteboard): NSArray; message 'readableTypesForPasteboard:';
  30. class function readingOptionsForType_pasteboard (type_: NSString; pasteboard: NSPasteboard): NSPasteboardReadingOptions; message 'readingOptionsForType:pasteboard:';
  31. function writableTypesForPasteboard (pasteboard: NSPasteboard): NSArray; message 'writableTypesForPasteboard:';
  32. function writingOptionsForType_pasteboard (type_: NSString; pasteboard: NSPasteboard): NSPasteboardWritingOptions; message 'writingOptionsForType:pasteboard:';
  33. end;
  34. {$endif}
  35. {$ifdef PROTOCOLS}
  36. type
  37. NSPasteboardItemDataProviderProtocol = objcprotocol external name 'NSPasteboardItemDataProvider' (NSObjectProtocol)
  38. required
  39. procedure pasteboard_item_provideDataForType (pasteboard: NSPasteboard; item: NSPasteboardItem; type_: NSString); message 'pasteboard:item:provideDataForType:';
  40. optional
  41. procedure pasteboardFinishedWithDataProvider (pasteboard: NSPasteboard); message 'pasteboardFinishedWithDataProvider:';
  42. end;
  43. {$endif}