NSPropertyList.inc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. { Parsed from Foundation.framework NSPropertyList.h }
  2. {$ifdef TYPES}
  3. type
  4. NSPropertyListSerializationPtr = ^NSPropertyListSerialization;
  5. {$endif}
  6. {$ifdef TYPES}
  7. type
  8. NSPropertyListMutabilityOptions = NSUInteger;
  9. NSPropertyListMutabilityOptionsPtr = ^NSPropertyListMutabilityOptions;
  10. const
  11. NSPropertyListImmutable = kCFPropertyListImmutable;
  12. NSPropertyListMutableContainers = kCFPropertyListMutableContainers;
  13. NSPropertyListMutableContainersAndLeaves = kCFPropertyListMutableContainersAndLeaves;
  14. type
  15. NSPropertyListFormat = NSUInteger;
  16. NSPropertyListFormatPtr = ^NSPropertyListFormat;
  17. const
  18. NSPropertyListOpenStepFormat = kCFPropertyListOpenStepFormat;
  19. NSPropertyListXMLFormat_v1_0 = kCFPropertyListXMLFormat_v1_0;
  20. NSPropertyListBinaryFormat_v1_0 = kCFPropertyListBinaryFormat_v1_0;
  21. type
  22. NSPropertyListReadOptions = NSUInteger;
  23. NSPropertyListReadOptionsPtr = ^NSPropertyListReadOptions;
  24. NSPropertyListWriteOptions = NSUInteger;
  25. NSPropertyListWriteOptionsPtr = ^NSPropertyListWriteOptions;
  26. {$endif}
  27. {$ifdef CLASSES}
  28. type
  29. NSPropertyListSerialization = objcclass external (NSObject)
  30. private
  31. reserved:array[0..5] of pointer;
  32. public
  33. class function propertyList_isValidForFormat (plist: id; format: NSPropertyListFormat): ObjCBOOL; message 'propertyList:isValidForFormat:';
  34. class function dataWithPropertyList_format_options_error (plist: id; format: NSPropertyListFormat; opt: NSPropertyListWriteOptions; error: NSErrorPtr): NSData; message 'dataWithPropertyList:format:options:error:'; { available in 10_6, 4_0 }
  35. class function writePropertyList_toStream_format_options_error (plist: id; stream: NSOutputStream; format: NSPropertyListFormat; opt: NSPropertyListWriteOptions; error: NSErrorPtr): NSInteger; message 'writePropertyList:toStream:format:options:error:'; { available in 10_6, 4_0 }
  36. class function propertyListWithData_options_format_error (data: NSData; opt: NSPropertyListReadOptions; format: NSPropertyListFormatPtr; error: NSErrorPtr): id; message 'propertyListWithData:options:format:error:'; { available in 10_6, 4_0 }
  37. class function propertyListWithStream_options_format_error (stream: NSInputStream; opt: NSPropertyListReadOptions; format: NSPropertyListFormatPtr; error: NSErrorPtr): id; message 'propertyListWithStream:options:format:error:'; { available in 10_6, 4_0 }
  38. class function dataFromPropertyList_format_errorDescription (plist: id; format: NSPropertyListFormat; errorString: NSStringPtr): NSData; message 'dataFromPropertyList:format:errorDescription:'; deprecated 'in 10_0, 10_10, 2_0, 8_0, "Use dataWithPropertyList:format:options:error: instead."';
  39. class function propertyListFromData_mutabilityOption_format_errorDescription (data: NSData; opt: NSPropertyListMutabilityOptions; format: NSPropertyListFormatPtr; errorString: NSStringPtr): id; message 'propertyListFromData:mutabilityOption:format:errorDescription:'; deprecated 'in 10_0, 10_10, 2_0, 8_0, "Use propertyListWithData:options:format:error: instead."';
  40. end;
  41. {$endif}