NSObject.inc 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. { Parsed from Foundation.framework NSObject.h }
  2. { Types from NSDeprecatedMethods }
  3. {$ifdef TYPES}
  4. {$endif}
  5. {$ifdef TYPES}
  6. type
  7. NSCopyingProtocolPtr = ^NSCopyingProtocol;
  8. NSMutableCopyingProtocolPtr = ^NSMutableCopyingProtocol;
  9. NSCodingProtocolPtr = ^NSCodingProtocol;
  10. NSSecureCodingProtocolPtr = ^NSSecureCodingProtocol;
  11. NSDiscardableContentProtocolPtr = ^NSDiscardableContentProtocol;
  12. {$endif}
  13. {$ifdef PROTOCOLS}
  14. type
  15. NSCopyingProtocol = objcprotocol external name 'NSCopying'
  16. function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
  17. end;
  18. type
  19. NSMutableCopyingProtocol = objcprotocol external name 'NSMutableCopying'
  20. function mutableCopyWithZone (zone: NSZonePtr): id; message 'mutableCopyWithZone:';
  21. end;
  22. type
  23. NSCodingProtocol = objcprotocol external name 'NSCoding'
  24. procedure encodeWithCoder (aCoder: NSCoder); message 'encodeWithCoder:';
  25. function initWithCoder (aDecoder: NSCoder): id; message 'initWithCoder:';
  26. end;
  27. type
  28. NSSecureCodingProtocol = objcprotocol external name 'NSSecureCoding' (NSCodingProtocol)
  29. required
  30. class function supportsSecureCoding: ObjCBOOL; message 'supportsSecureCoding';
  31. end;
  32. {$endif}
  33. {$ifdef CLASSES}
  34. type
  35. NSCoderMethods = objccategory external (NSObject)
  36. class function version: NSInteger; message 'version';
  37. class procedure setVersion (aVersion: NSInteger); message 'setVersion:';
  38. function classForCoder: pobjc_class; message 'classForCoder';
  39. function replacementObjectForCoder (aCoder: NSCoder): id; message 'replacementObjectForCoder:';
  40. function awakeAfterUsingCoder (aDecoder: NSCoder): id; message 'awakeAfterUsingCoder:';
  41. end;
  42. {$endif}
  43. {$if (defined(TARGET_OS_MAC) and not (defined(TARGET_OS_EMBEDDED) or defined(TARGET_OS_IPHONE)))}
  44. {$ifdef CLASSES}
  45. type
  46. NSDeprecatedMethods = objccategory external (NSObject)
  47. end;
  48. {$endif}
  49. {$endif}
  50. {$ifdef PROTOCOLS}
  51. type
  52. NSDiscardableContentProtocol = objcprotocol external name 'NSDiscardableContent'
  53. required
  54. function beginContentAccess: ObjCBOOL; message 'beginContentAccess';
  55. procedure endContentAccess; message 'endContentAccess';
  56. procedure discardContentIfPossible; message 'discardContentIfPossible';
  57. function isContentDiscarded: ObjCBOOL; message 'isContentDiscarded';
  58. end;
  59. {$endif}
  60. {$ifdef CLASSES}
  61. type
  62. NSDiscardableContentProxy = objccategory external (NSObject)
  63. function autoContentAccessingProxy: id; message 'autoContentAccessingProxy';
  64. end;
  65. {$endif}
  66. {$ifdef FUNCTIONS}
  67. function NSAllocateObject(aClass: pobjc_class; extraBytes: NSUInteger; zone: NSZonePtr): id; cdecl; external;
  68. procedure NSDeallocateObject(object_: id); cdecl; external;
  69. function NSCopyObject(object_: id; extraBytes: NSUInteger; zone: NSZonePtr): id; cdecl; external; deprecated 'in 10_0, 10_8, 2_0, 6_0';
  70. function NSShouldRetainWithZone(anObject: id; requestedZone: NSZonePtr): ObjCBOOL; cdecl; external;
  71. procedure NSIncrementExtraRefCount(object_: id); cdecl; external;
  72. function NSDecrementExtraRefCountWasZero(object_: id): ObjCBOOL; cdecl; external;
  73. function NSExtraRefCount(object_: id): NSUInteger; cdecl; external;
  74. {$endif}