Collections.pas 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. {
  2. File: CarbonCore/Collections.h
  3. Contains: Collection Manager Interfaces
  4. The contents of this header file are deprecated.
  5. Use Foundation or CoreFoundation collection objects instead.
  6. Copyright: © 1989-2011 by Apple Inc. All rights reserved.
  7. }
  8. {
  9. Modified for use with Free Pascal
  10. Version 308
  11. Please report any bugs to <[email protected]>
  12. }
  13. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  14. {$mode macpas}
  15. {$packenum 1}
  16. {$macro on}
  17. {$inline on}
  18. {$calling mwpascal}
  19. unit Collections;
  20. interface
  21. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  22. {$setc GAP_INTERFACES_VERSION := $0308}
  23. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  24. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  25. {$endc}
  26. {$ifc defined CPUPOWERPC and defined CPUI386}
  27. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  28. {$endc}
  29. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  30. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  31. {$endc}
  32. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  33. {$setc __ppc__ := 1}
  34. {$elsec}
  35. {$setc __ppc__ := 0}
  36. {$endc}
  37. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  38. {$setc __ppc64__ := 1}
  39. {$elsec}
  40. {$setc __ppc64__ := 0}
  41. {$endc}
  42. {$ifc not defined __i386__ and defined CPUI386}
  43. {$setc __i386__ := 1}
  44. {$elsec}
  45. {$setc __i386__ := 0}
  46. {$endc}
  47. {$ifc not defined __x86_64__ and defined CPUX86_64}
  48. {$setc __x86_64__ := 1}
  49. {$elsec}
  50. {$setc __x86_64__ := 0}
  51. {$endc}
  52. {$ifc not defined __arm__ and defined CPUARM}
  53. {$setc __arm__ := 1}
  54. {$elsec}
  55. {$setc __arm__ := 0}
  56. {$endc}
  57. {$ifc not defined __arm64__ and defined CPUAARCH64}
  58. {$setc __arm64__ := 1}
  59. {$elsec}
  60. {$setc __arm64__ := 0}
  61. {$endc}
  62. {$ifc defined cpu64}
  63. {$setc __LP64__ := 1}
  64. {$elsec}
  65. {$setc __LP64__ := 0}
  66. {$endc}
  67. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  68. {$error Conflicting definitions for __ppc__ and __i386__}
  69. {$endc}
  70. {$ifc defined __ppc__ and __ppc__}
  71. {$setc TARGET_CPU_PPC := TRUE}
  72. {$setc TARGET_CPU_PPC64 := FALSE}
  73. {$setc TARGET_CPU_X86 := FALSE}
  74. {$setc TARGET_CPU_X86_64 := FALSE}
  75. {$setc TARGET_CPU_ARM := FALSE}
  76. {$setc TARGET_CPU_ARM64 := FALSE}
  77. {$setc TARGET_OS_MAC := TRUE}
  78. {$setc TARGET_OS_IPHONE := FALSE}
  79. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  80. {$setc TARGET_OS_EMBEDDED := FALSE}
  81. {$elifc defined __ppc64__ and __ppc64__}
  82. {$setc TARGET_CPU_PPC := FALSE}
  83. {$setc TARGET_CPU_PPC64 := TRUE}
  84. {$setc TARGET_CPU_X86 := FALSE}
  85. {$setc TARGET_CPU_X86_64 := FALSE}
  86. {$setc TARGET_CPU_ARM := FALSE}
  87. {$setc TARGET_CPU_ARM64 := FALSE}
  88. {$setc TARGET_OS_MAC := TRUE}
  89. {$setc TARGET_OS_IPHONE := FALSE}
  90. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  91. {$setc TARGET_OS_EMBEDDED := FALSE}
  92. {$elifc defined __i386__ and __i386__}
  93. {$setc TARGET_CPU_PPC := FALSE}
  94. {$setc TARGET_CPU_PPC64 := FALSE}
  95. {$setc TARGET_CPU_X86 := TRUE}
  96. {$setc TARGET_CPU_X86_64 := FALSE}
  97. {$setc TARGET_CPU_ARM := FALSE}
  98. {$setc TARGET_CPU_ARM64 := FALSE}
  99. {$ifc defined(iphonesim)}
  100. {$setc TARGET_OS_MAC := FALSE}
  101. {$setc TARGET_OS_IPHONE := TRUE}
  102. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  103. {$elsec}
  104. {$setc TARGET_OS_MAC := TRUE}
  105. {$setc TARGET_OS_IPHONE := FALSE}
  106. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  107. {$endc}
  108. {$setc TARGET_OS_EMBEDDED := FALSE}
  109. {$elifc defined __x86_64__ and __x86_64__}
  110. {$setc TARGET_CPU_PPC := FALSE}
  111. {$setc TARGET_CPU_PPC64 := FALSE}
  112. {$setc TARGET_CPU_X86 := FALSE}
  113. {$setc TARGET_CPU_X86_64 := TRUE}
  114. {$setc TARGET_CPU_ARM := FALSE}
  115. {$setc TARGET_CPU_ARM64 := FALSE}
  116. {$ifc defined(iphonesim)}
  117. {$setc TARGET_OS_MAC := FALSE}
  118. {$setc TARGET_OS_IPHONE := TRUE}
  119. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  120. {$elsec}
  121. {$setc TARGET_OS_MAC := TRUE}
  122. {$setc TARGET_OS_IPHONE := FALSE}
  123. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  124. {$endc}
  125. {$setc TARGET_OS_EMBEDDED := FALSE}
  126. {$elifc defined __arm__ and __arm__}
  127. {$setc TARGET_CPU_PPC := FALSE}
  128. {$setc TARGET_CPU_PPC64 := FALSE}
  129. {$setc TARGET_CPU_X86 := FALSE}
  130. {$setc TARGET_CPU_X86_64 := FALSE}
  131. {$setc TARGET_CPU_ARM := TRUE}
  132. {$setc TARGET_CPU_ARM64 := FALSE}
  133. { will require compiler define when/if other Apple devices with ARM cpus ship }
  134. {$setc TARGET_OS_MAC := FALSE}
  135. {$setc TARGET_OS_IPHONE := TRUE}
  136. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  137. {$setc TARGET_OS_EMBEDDED := TRUE}
  138. {$elifc defined __arm64__ and __arm64__}
  139. {$setc TARGET_CPU_PPC := FALSE}
  140. {$setc TARGET_CPU_PPC64 := FALSE}
  141. {$setc TARGET_CPU_X86 := FALSE}
  142. {$setc TARGET_CPU_X86_64 := FALSE}
  143. {$setc TARGET_CPU_ARM := FALSE}
  144. {$setc TARGET_CPU_ARM64 := TRUE}
  145. { will require compiler define when/if other Apple devices with ARM cpus ship }
  146. {$setc TARGET_OS_MAC := FALSE}
  147. {$setc TARGET_OS_IPHONE := TRUE}
  148. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  149. {$setc TARGET_OS_EMBEDDED := TRUE}
  150. {$elsec}
  151. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ nor __arm64__ is defined.}
  152. {$endc}
  153. {$ifc defined __LP64__ and __LP64__ }
  154. {$setc TARGET_CPU_64 := TRUE}
  155. {$elsec}
  156. {$setc TARGET_CPU_64 := FALSE}
  157. {$endc}
  158. {$ifc defined FPC_BIG_ENDIAN}
  159. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  160. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  161. {$elifc defined FPC_LITTLE_ENDIAN}
  162. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  163. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  164. {$elsec}
  165. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  166. {$endc}
  167. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  168. {$setc CALL_NOT_IN_CARBON := FALSE}
  169. {$setc OLDROUTINENAMES := FALSE}
  170. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  171. {$setc OPAQUE_UPP_TYPES := TRUE}
  172. {$setc OTCARBONAPPLICATION := TRUE}
  173. {$setc OTKERNEL := FALSE}
  174. {$setc PM_USE_SESSION_APIS := TRUE}
  175. {$setc TARGET_API_MAC_CARBON := TRUE}
  176. {$setc TARGET_API_MAC_OS8 := FALSE}
  177. {$setc TARGET_API_MAC_OSX := TRUE}
  178. {$setc TARGET_CARBON := TRUE}
  179. {$setc TARGET_CPU_68K := FALSE}
  180. {$setc TARGET_CPU_MIPS := FALSE}
  181. {$setc TARGET_CPU_SPARC := FALSE}
  182. {$setc TARGET_OS_UNIX := FALSE}
  183. {$setc TARGET_OS_WIN32 := FALSE}
  184. {$setc TARGET_RT_MAC_68881 := FALSE}
  185. {$setc TARGET_RT_MAC_CFM := FALSE}
  186. {$setc TARGET_RT_MAC_MACHO := TRUE}
  187. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  188. {$setc TYPE_BOOL := FALSE}
  189. {$setc TYPE_EXTENDED := FALSE}
  190. {$setc TYPE_LONGLONG := TRUE}
  191. uses MacTypes;
  192. {$endc} {not MACOSALLINCLUDE}
  193. {$ifc TARGET_OS_MAC}
  194. {$ALIGN POWER}
  195. {***********}
  196. { Constants }
  197. {***********}
  198. { Convenience constants for functions which optionally return values }
  199. const
  200. kCollectionDontWantTag = 0;
  201. kCollectionDontWantId = 0;
  202. kCollectionDontWantSize = 0;
  203. kCollectionDontWantAttributes = 0;
  204. kCollectionDontWantIndex = 0;
  205. kCollectionDontWantData = 0;
  206. { attributes bits }
  207. const
  208. kCollectionNoAttributes = $00000000; { no attributes bits set }
  209. kCollectionAllAttributes = -1; { all attributes bits set }
  210. kCollectionUserAttributes = $0000FFFF; { user attributes bits }
  211. kCollectionDefaultAttributes = $40000000; { default attributes - unlocked, persistent }
  212. {
  213. Attribute bits 0 through 15 (entire low word) are reserved for use by the application.
  214. Attribute bits 16 through 31 (entire high word) are reserved for use by the Collection Manager.
  215. Only bits 31 (kCollectionLockBit) and 30 (kCollectionPersistenceBit) currently have meaning.
  216. }
  217. const
  218. kCollectionUser0Bit = 0;
  219. kCollectionUser1Bit = 1;
  220. kCollectionUser2Bit = 2;
  221. kCollectionUser3Bit = 3;
  222. kCollectionUser4Bit = 4;
  223. kCollectionUser5Bit = 5;
  224. kCollectionUser6Bit = 6;
  225. kCollectionUser7Bit = 7;
  226. kCollectionUser8Bit = 8;
  227. kCollectionUser9Bit = 9;
  228. kCollectionUser10Bit = 10;
  229. kCollectionUser11Bit = 11;
  230. kCollectionUser12Bit = 12;
  231. kCollectionUser13Bit = 13;
  232. kCollectionUser14Bit = 14;
  233. kCollectionUser15Bit = 15;
  234. kCollectionReserved0Bit = 16;
  235. kCollectionReserved1Bit = 17;
  236. kCollectionReserved2Bit = 18;
  237. kCollectionReserved3Bit = 19;
  238. kCollectionReserved4Bit = 20;
  239. kCollectionReserved5Bit = 21;
  240. kCollectionReserved6Bit = 22;
  241. kCollectionReserved7Bit = 23;
  242. kCollectionReserved8Bit = 24;
  243. kCollectionReserved9Bit = 25;
  244. kCollectionReserved10Bit = 26;
  245. kCollectionReserved11Bit = 27;
  246. kCollectionReserved12Bit = 28;
  247. kCollectionReserved13Bit = 29;
  248. kCollectionPersistenceBit = 30;
  249. kCollectionLockBit = 31;
  250. { attribute masks }
  251. const
  252. kCollectionUser0Mask = 1 shl kCollectionUser0Bit;
  253. kCollectionUser1Mask = 1 shl kCollectionUser1Bit;
  254. kCollectionUser2Mask = 1 shl kCollectionUser2Bit;
  255. kCollectionUser3Mask = 1 shl kCollectionUser3Bit;
  256. kCollectionUser4Mask = 1 shl kCollectionUser4Bit;
  257. kCollectionUser5Mask = 1 shl kCollectionUser5Bit;
  258. kCollectionUser6Mask = 1 shl kCollectionUser6Bit;
  259. kCollectionUser7Mask = 1 shl kCollectionUser7Bit;
  260. kCollectionUser8Mask = 1 shl kCollectionUser8Bit;
  261. kCollectionUser9Mask = 1 shl kCollectionUser9Bit;
  262. kCollectionUser10Mask = 1 shl kCollectionUser10Bit;
  263. kCollectionUser11Mask = 1 shl kCollectionUser11Bit;
  264. kCollectionUser12Mask = 1 shl kCollectionUser12Bit;
  265. kCollectionUser13Mask = 1 shl kCollectionUser13Bit;
  266. kCollectionUser14Mask = 1 shl kCollectionUser14Bit;
  267. kCollectionUser15Mask = 1 shl kCollectionUser15Bit;
  268. kCollectionReserved0Mask = 1 shl kCollectionReserved0Bit;
  269. kCollectionReserved1Mask = 1 shl kCollectionReserved1Bit;
  270. kCollectionReserved2Mask = 1 shl kCollectionReserved2Bit;
  271. kCollectionReserved3Mask = 1 shl kCollectionReserved3Bit;
  272. kCollectionReserved4Mask = 1 shl kCollectionReserved4Bit;
  273. kCollectionReserved5Mask = 1 shl kCollectionReserved5Bit;
  274. kCollectionReserved6Mask = 1 shl kCollectionReserved6Bit;
  275. kCollectionReserved7Mask = 1 shl kCollectionReserved7Bit;
  276. kCollectionReserved8Mask = 1 shl kCollectionReserved8Bit;
  277. kCollectionReserved9Mask = 1 shl kCollectionReserved9Bit;
  278. kCollectionReserved10Mask = 1 shl kCollectionReserved10Bit;
  279. kCollectionReserved11Mask = 1 shl kCollectionReserved11Bit;
  280. kCollectionReserved12Mask = 1 shl kCollectionReserved12Bit;
  281. kCollectionReserved13Mask = 1 shl kCollectionReserved13Bit;
  282. kCollectionPersistenceMask = 1 shl kCollectionPersistenceBit;
  283. kCollectionLockMask = 1 shl kCollectionLockBit;
  284. {*********}
  285. { Types }
  286. {*********}
  287. { abstract data type for a collection }
  288. type
  289. Collection = ^OpaqueCollection; { an opaque type }
  290. OpaqueCollection = record end;
  291. { collection member 4 byte tag }
  292. type
  293. CollectionTag = FourCharCode;
  294. CollectionFlattenProcPtr = function( size: SInt32; data: UnivPtr; refCon: UnivPtr ): OSErr;
  295. CollectionExceptionProcPtr = function( c: Collection; status: OSErr ): OSErr;
  296. CollectionFlattenUPP = CollectionFlattenProcPtr;
  297. CollectionExceptionUPP = CollectionExceptionProcPtr;
  298. {
  299. * NewCollectionFlattenUPP()
  300. *
  301. * Availability:
  302. * Mac OS X: in version 10.0 and later in CoreServices.framework
  303. * CarbonLib: in CarbonLib 1.0 and later
  304. * Non-Carbon CFM: available as macro/inline
  305. }
  306. function NewCollectionFlattenUPP( userRoutine: CollectionFlattenProcPtr ): CollectionFlattenUPP; external name '_NewCollectionFlattenUPP';
  307. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  308. {
  309. * NewCollectionExceptionUPP()
  310. *
  311. * Availability:
  312. * Mac OS X: in version 10.0 and later in CoreServices.framework
  313. * CarbonLib: in CarbonLib 1.0 and later
  314. * Non-Carbon CFM: available as macro/inline
  315. }
  316. function NewCollectionExceptionUPP( userRoutine: CollectionExceptionProcPtr ): CollectionExceptionUPP; external name '_NewCollectionExceptionUPP';
  317. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  318. {
  319. * DisposeCollectionFlattenUPP()
  320. *
  321. * Availability:
  322. * Mac OS X: in version 10.0 and later in CoreServices.framework
  323. * CarbonLib: in CarbonLib 1.0 and later
  324. * Non-Carbon CFM: available as macro/inline
  325. }
  326. procedure DisposeCollectionFlattenUPP( userUPP: CollectionFlattenUPP ); external name '_DisposeCollectionFlattenUPP';
  327. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  328. {
  329. * DisposeCollectionExceptionUPP()
  330. *
  331. * Availability:
  332. * Mac OS X: in version 10.0 and later in CoreServices.framework
  333. * CarbonLib: in CarbonLib 1.0 and later
  334. * Non-Carbon CFM: available as macro/inline
  335. }
  336. procedure DisposeCollectionExceptionUPP( userUPP: CollectionExceptionUPP ); external name '_DisposeCollectionExceptionUPP';
  337. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  338. {
  339. * InvokeCollectionFlattenUPP()
  340. *
  341. * Availability:
  342. * Mac OS X: in version 10.0 and later in CoreServices.framework
  343. * CarbonLib: in CarbonLib 1.0 and later
  344. * Non-Carbon CFM: available as macro/inline
  345. }
  346. function InvokeCollectionFlattenUPP( size: SInt32; data: UnivPtr; refCon: UnivPtr; userUPP: CollectionFlattenUPP ): OSErr; external name '_InvokeCollectionFlattenUPP';
  347. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  348. {
  349. * InvokeCollectionExceptionUPP()
  350. *
  351. * Availability:
  352. * Mac OS X: in version 10.0 and later in CoreServices.framework
  353. * CarbonLib: in CarbonLib 1.0 and later
  354. * Non-Carbon CFM: available as macro/inline
  355. }
  356. function InvokeCollectionExceptionUPP( c: Collection; status: OSErr; userUPP: CollectionExceptionUPP ): OSErr; external name '_InvokeCollectionExceptionUPP';
  357. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  358. {*******************************************}
  359. {************ Public interfaces ************}
  360. {*******************************************}
  361. {
  362. * NewCollection()
  363. *
  364. * Availability:
  365. * Mac OS X: in version 10.0 and later in CoreServices.framework
  366. * CarbonLib: in CarbonLib 1.0 and later
  367. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  368. }
  369. function NewCollection: Collection; external name '_NewCollection';
  370. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  371. {
  372. * DisposeCollection()
  373. *
  374. * Availability:
  375. * Mac OS X: in version 10.0 and later in CoreServices.framework
  376. * CarbonLib: in CarbonLib 1.0 and later
  377. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  378. }
  379. procedure DisposeCollection( c: Collection ); external name '_DisposeCollection';
  380. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  381. {
  382. * CloneCollection()
  383. *
  384. * Availability:
  385. * Mac OS X: in version 10.0 and later in CoreServices.framework
  386. * CarbonLib: in CarbonLib 1.0 and later
  387. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  388. }
  389. function CloneCollection( c: Collection ): Collection; external name '_CloneCollection';
  390. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  391. {
  392. * CountCollectionOwners()
  393. *
  394. * Availability:
  395. * Mac OS X: in version 10.0 and later in CoreServices.framework
  396. * CarbonLib: in CarbonLib 1.0 and later
  397. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  398. }
  399. function CountCollectionOwners( c: Collection ): SInt32; external name '_CountCollectionOwners';
  400. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  401. {
  402. * RetainCollection()
  403. *
  404. * Availability:
  405. * Mac OS X: in version 10.1 and later in CoreServices.framework
  406. * CarbonLib: in CarbonLib 1.1 and later
  407. * Non-Carbon CFM: not available
  408. }
  409. function RetainCollection( c: Collection ): OSStatus; external name '_RetainCollection';
  410. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  411. {
  412. * ReleaseCollection()
  413. *
  414. * Availability:
  415. * Mac OS X: in version 10.1 and later in CoreServices.framework
  416. * CarbonLib: in CarbonLib 1.1 and later
  417. * Non-Carbon CFM: not available
  418. }
  419. function ReleaseCollection( c: Collection ): OSStatus; external name '_ReleaseCollection';
  420. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  421. {
  422. * GetCollectionRetainCount()
  423. *
  424. * Availability:
  425. * Mac OS X: in version 10.1 and later in CoreServices.framework
  426. * CarbonLib: in CarbonLib 1.1 and later
  427. * Non-Carbon CFM: not available
  428. }
  429. function GetCollectionRetainCount( c: Collection ): ItemCount; external name '_GetCollectionRetainCount';
  430. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_1, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  431. {
  432. * CopyCollection()
  433. *
  434. * Availability:
  435. * Mac OS X: in version 10.0 and later in CoreServices.framework
  436. * CarbonLib: in CarbonLib 1.0 and later
  437. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  438. }
  439. function CopyCollection( srcCollection: Collection; dstCollection: Collection ): Collection; external name '_CopyCollection';
  440. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  441. {
  442. * GetCollectionDefaultAttributes()
  443. *
  444. * Availability:
  445. * Mac OS X: in version 10.0 and later in CoreServices.framework
  446. * CarbonLib: in CarbonLib 1.0 and later
  447. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  448. }
  449. function GetCollectionDefaultAttributes( c: Collection ): SInt32; external name '_GetCollectionDefaultAttributes';
  450. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  451. {
  452. * SetCollectionDefaultAttributes()
  453. *
  454. * Availability:
  455. * Mac OS X: in version 10.0 and later in CoreServices.framework
  456. * CarbonLib: in CarbonLib 1.0 and later
  457. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  458. }
  459. procedure SetCollectionDefaultAttributes( c: Collection; whichAttributes: SInt32; newAttributes: SInt32 ); external name '_SetCollectionDefaultAttributes';
  460. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  461. {
  462. * CountCollectionItems()
  463. *
  464. * Availability:
  465. * Mac OS X: in version 10.0 and later in CoreServices.framework
  466. * CarbonLib: in CarbonLib 1.0 and later
  467. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  468. }
  469. function CountCollectionItems( c: Collection ): SInt32; external name '_CountCollectionItems';
  470. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  471. {
  472. * AddCollectionItem()
  473. *
  474. * Availability:
  475. * Mac OS X: in version 10.0 and later in CoreServices.framework
  476. * CarbonLib: in CarbonLib 1.0 and later
  477. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  478. }
  479. function AddCollectionItem( c: Collection; tag: CollectionTag; id: SInt32; itemSize: SInt32; itemData: {const} UnivPtr ): OSErr; external name '_AddCollectionItem';
  480. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  481. {
  482. * GetCollectionItem()
  483. *
  484. * Availability:
  485. * Mac OS X: in version 10.0 and later in CoreServices.framework
  486. * CarbonLib: in CarbonLib 1.0 and later
  487. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  488. }
  489. function GetCollectionItem( c: Collection; tag: CollectionTag; id: SInt32; var itemSize: SInt32; itemData: UnivPtr ): OSErr; external name '_GetCollectionItem';
  490. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  491. {
  492. * RemoveCollectionItem()
  493. *
  494. * Availability:
  495. * Mac OS X: in version 10.0 and later in CoreServices.framework
  496. * CarbonLib: in CarbonLib 1.0 and later
  497. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  498. }
  499. function RemoveCollectionItem( c: Collection; tag: CollectionTag; id: SInt32 ): OSErr; external name '_RemoveCollectionItem';
  500. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  501. {
  502. * SetCollectionItemInfo()
  503. *
  504. * Availability:
  505. * Mac OS X: in version 10.0 and later in CoreServices.framework
  506. * CarbonLib: in CarbonLib 1.0 and later
  507. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  508. }
  509. function SetCollectionItemInfo( c: Collection; tag: CollectionTag; id: SInt32; whichAttributes: SInt32; newAttributes: SInt32 ): OSErr; external name '_SetCollectionItemInfo';
  510. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  511. {
  512. * GetCollectionItemInfo()
  513. *
  514. * Availability:
  515. * Mac OS X: in version 10.0 and later in CoreServices.framework
  516. * CarbonLib: in CarbonLib 1.0 and later
  517. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  518. }
  519. function GetCollectionItemInfo( c: Collection; tag: CollectionTag; id: SInt32; var itemIndex: SInt32; var itemSize: SInt32; var attributes: SInt32 ): OSErr; external name '_GetCollectionItemInfo';
  520. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  521. {
  522. * ReplaceIndexedCollectionItem()
  523. *
  524. * Availability:
  525. * Mac OS X: in version 10.0 and later in CoreServices.framework
  526. * CarbonLib: in CarbonLib 1.0 and later
  527. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  528. }
  529. function ReplaceIndexedCollectionItem( c: Collection; itemIndex: SInt32; itemSize: SInt32; itemData: {const} UnivPtr ): OSErr; external name '_ReplaceIndexedCollectionItem';
  530. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  531. {
  532. * GetIndexedCollectionItem()
  533. *
  534. * Availability:
  535. * Mac OS X: in version 10.0 and later in CoreServices.framework
  536. * CarbonLib: in CarbonLib 1.0 and later
  537. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  538. }
  539. function GetIndexedCollectionItem( c: Collection; itemIndex: SInt32; var itemSize: SInt32; itemData: UnivPtr ): OSErr; external name '_GetIndexedCollectionItem';
  540. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  541. {
  542. * RemoveIndexedCollectionItem()
  543. *
  544. * Availability:
  545. * Mac OS X: in version 10.0 and later in CoreServices.framework
  546. * CarbonLib: in CarbonLib 1.0 and later
  547. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  548. }
  549. function RemoveIndexedCollectionItem( c: Collection; itemIndex: SInt32 ): OSErr; external name '_RemoveIndexedCollectionItem';
  550. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  551. {
  552. * SetIndexedCollectionItemInfo()
  553. *
  554. * Availability:
  555. * Mac OS X: in version 10.0 and later in CoreServices.framework
  556. * CarbonLib: in CarbonLib 1.0 and later
  557. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  558. }
  559. function SetIndexedCollectionItemInfo( c: Collection; itemIndex: SInt32; whichAttributes: SInt32; newAttributes: SInt32 ): OSErr; external name '_SetIndexedCollectionItemInfo';
  560. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  561. {
  562. * GetIndexedCollectionItemInfo()
  563. *
  564. * Availability:
  565. * Mac OS X: in version 10.0 and later in CoreServices.framework
  566. * CarbonLib: in CarbonLib 1.0 and later
  567. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  568. }
  569. function GetIndexedCollectionItemInfo( c: Collection; itemIndex: SInt32; var tag: CollectionTag; var id: SInt32; var itemSize: SInt32; var attributes: SInt32 ): OSErr; external name '_GetIndexedCollectionItemInfo';
  570. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  571. {
  572. * CollectionTagExists()
  573. *
  574. * Availability:
  575. * Mac OS X: in version 10.0 and later in CoreServices.framework
  576. * CarbonLib: in CarbonLib 1.0 and later
  577. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  578. }
  579. function CollectionTagExists( c: Collection; tag: CollectionTag ): Boolean; external name '_CollectionTagExists';
  580. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  581. {
  582. * CountCollectionTags()
  583. *
  584. * Availability:
  585. * Mac OS X: in version 10.0 and later in CoreServices.framework
  586. * CarbonLib: in CarbonLib 1.0 and later
  587. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  588. }
  589. function CountCollectionTags( c: Collection ): SInt32; external name '_CountCollectionTags';
  590. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  591. {
  592. * GetIndexedCollectionTag()
  593. *
  594. * Availability:
  595. * Mac OS X: in version 10.0 and later in CoreServices.framework
  596. * CarbonLib: in CarbonLib 1.0 and later
  597. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  598. }
  599. function GetIndexedCollectionTag( c: Collection; tagIndex: SInt32; var tag: CollectionTag ): OSErr; external name '_GetIndexedCollectionTag';
  600. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  601. {
  602. * CountTaggedCollectionItems()
  603. *
  604. * Availability:
  605. * Mac OS X: in version 10.0 and later in CoreServices.framework
  606. * CarbonLib: in CarbonLib 1.0 and later
  607. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  608. }
  609. function CountTaggedCollectionItems( c: Collection; tag: CollectionTag ): SInt32; external name '_CountTaggedCollectionItems';
  610. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  611. {
  612. * GetTaggedCollectionItem()
  613. *
  614. * Availability:
  615. * Mac OS X: in version 10.0 and later in CoreServices.framework
  616. * CarbonLib: in CarbonLib 1.0 and later
  617. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  618. }
  619. function GetTaggedCollectionItem( c: Collection; tag: CollectionTag; whichItem: SInt32; var itemSize: SInt32; itemData: UnivPtr ): OSErr; external name '_GetTaggedCollectionItem';
  620. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  621. {
  622. * GetTaggedCollectionItemInfo()
  623. *
  624. * Availability:
  625. * Mac OS X: in version 10.0 and later in CoreServices.framework
  626. * CarbonLib: in CarbonLib 1.0 and later
  627. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  628. }
  629. function GetTaggedCollectionItemInfo( c: Collection; tag: CollectionTag; whichItem: SInt32; var id: SInt32; var itemIndex: SInt32; var itemSize: SInt32; var attributes: SInt32 ): OSErr; external name '_GetTaggedCollectionItemInfo';
  630. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  631. {
  632. * PurgeCollection()
  633. *
  634. * Availability:
  635. * Mac OS X: in version 10.0 and later in CoreServices.framework
  636. * CarbonLib: in CarbonLib 1.0 and later
  637. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  638. }
  639. procedure PurgeCollection( c: Collection; whichAttributes: SInt32; matchingAttributes: SInt32 ); external name '_PurgeCollection';
  640. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  641. {
  642. * PurgeCollectionTag()
  643. *
  644. * Availability:
  645. * Mac OS X: in version 10.0 and later in CoreServices.framework
  646. * CarbonLib: in CarbonLib 1.0 and later
  647. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  648. }
  649. procedure PurgeCollectionTag( c: Collection; tag: CollectionTag ); external name '_PurgeCollectionTag';
  650. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  651. {
  652. * EmptyCollection()
  653. *
  654. * Availability:
  655. * Mac OS X: in version 10.0 and later in CoreServices.framework
  656. * CarbonLib: in CarbonLib 1.0 and later
  657. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  658. }
  659. procedure EmptyCollection( c: Collection ); external name '_EmptyCollection';
  660. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  661. {
  662. * FlattenCollection()
  663. *
  664. * Availability:
  665. * Mac OS X: in version 10.0 and later in CoreServices.framework
  666. * CarbonLib: in CarbonLib 1.0 and later
  667. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  668. }
  669. function FlattenCollection( c: Collection; flattenProc: CollectionFlattenUPP; refCon: UnivPtr ): OSErr; external name '_FlattenCollection';
  670. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  671. {
  672. * FlattenPartialCollection()
  673. *
  674. * Availability:
  675. * Mac OS X: in version 10.0 and later in CoreServices.framework
  676. * CarbonLib: in CarbonLib 1.0 and later
  677. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  678. }
  679. function FlattenPartialCollection( c: Collection; flattenProc: CollectionFlattenUPP; refCon: UnivPtr; whichAttributes: SInt32; matchingAttributes: SInt32 ): OSErr; external name '_FlattenPartialCollection';
  680. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  681. {
  682. * UnflattenCollection()
  683. *
  684. * Availability:
  685. * Mac OS X: in version 10.0 and later in CoreServices.framework
  686. * CarbonLib: in CarbonLib 1.0 and later
  687. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  688. }
  689. function UnflattenCollection( c: Collection; flattenProc: CollectionFlattenUPP; refCon: UnivPtr ): OSErr; external name '_UnflattenCollection';
  690. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  691. {
  692. * GetCollectionExceptionProc()
  693. *
  694. * Availability:
  695. * Mac OS X: in version 10.0 and later in CoreServices.framework
  696. * CarbonLib: in CarbonLib 1.0 and later
  697. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  698. }
  699. function GetCollectionExceptionProc( c: Collection ): CollectionExceptionUPP; external name '_GetCollectionExceptionProc';
  700. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  701. {
  702. * SetCollectionExceptionProc()
  703. *
  704. * Availability:
  705. * Mac OS X: in version 10.0 and later in CoreServices.framework
  706. * CarbonLib: in CarbonLib 1.0 and later
  707. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  708. }
  709. procedure SetCollectionExceptionProc( c: Collection; exceptionProc: CollectionExceptionUPP ); external name '_SetCollectionExceptionProc';
  710. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  711. {
  712. * GetNewCollection()
  713. *
  714. * Availability:
  715. * Mac OS X: in version 10.0 and later in CoreServices.framework
  716. * CarbonLib: in CarbonLib 1.0 and later
  717. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  718. }
  719. function GetNewCollection( collectionID: SInt16 ): Collection; external name '_GetNewCollection';
  720. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  721. {********************************************************************}
  722. {************* Utility routines for handle-based access *************}
  723. {********************************************************************}
  724. {
  725. * AddCollectionItemHdl()
  726. *
  727. * Availability:
  728. * Mac OS X: in version 10.0 and later in CoreServices.framework
  729. * CarbonLib: in CarbonLib 1.0 and later
  730. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  731. }
  732. function AddCollectionItemHdl( aCollection: Collection; tag: CollectionTag; id: SInt32; itemData: Handle ): OSErr; external name '_AddCollectionItemHdl';
  733. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  734. {
  735. * GetCollectionItemHdl()
  736. *
  737. * Availability:
  738. * Mac OS X: in version 10.0 and later in CoreServices.framework
  739. * CarbonLib: in CarbonLib 1.0 and later
  740. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  741. }
  742. function GetCollectionItemHdl( aCollection: Collection; tag: CollectionTag; id: SInt32; itemData: Handle ): OSErr; external name '_GetCollectionItemHdl';
  743. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  744. {
  745. * ReplaceIndexedCollectionItemHdl()
  746. *
  747. * Availability:
  748. * Mac OS X: in version 10.0 and later in CoreServices.framework
  749. * CarbonLib: in CarbonLib 1.0 and later
  750. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  751. }
  752. function ReplaceIndexedCollectionItemHdl( aCollection: Collection; itemIndex: SInt32; itemData: Handle ): OSErr; external name '_ReplaceIndexedCollectionItemHdl';
  753. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  754. {
  755. * GetIndexedCollectionItemHdl()
  756. *
  757. * Availability:
  758. * Mac OS X: in version 10.0 and later in CoreServices.framework
  759. * CarbonLib: in CarbonLib 1.0 and later
  760. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  761. }
  762. function GetIndexedCollectionItemHdl( aCollection: Collection; itemIndex: SInt32; itemData: Handle ): OSErr; external name '_GetIndexedCollectionItemHdl';
  763. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  764. {
  765. * FlattenCollectionToHdl()
  766. *
  767. * Availability:
  768. * Mac OS X: in version 10.0 and later in CoreServices.framework
  769. * CarbonLib: in CarbonLib 1.0 and later
  770. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  771. }
  772. function FlattenCollectionToHdl( aCollection: Collection; flattened: Handle ): OSErr; external name '_FlattenCollectionToHdl';
  773. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  774. {
  775. * UnflattenCollectionFromHdl()
  776. *
  777. * Availability:
  778. * Mac OS X: in version 10.0 and later in CoreServices.framework
  779. * CarbonLib: in CarbonLib 1.0 and later
  780. * Non-Carbon CFM: in CollectionsLib 1.0 and later
  781. }
  782. function UnflattenCollectionFromHdl( aCollection: Collection; flattened: Handle ): OSErr; external name '_UnflattenCollectionFromHdl';
  783. (* __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA) *)
  784. {$ifc OLDROUTINENAMES}
  785. const
  786. dontWantTag = kCollectionDontWantTag;
  787. dontWantId = kCollectionDontWantId;
  788. dontWantSize = kCollectionDontWantSize;
  789. dontWantAttributes = kCollectionDontWantAttributes;
  790. dontWantIndex = kCollectionDontWantIndex;
  791. dontWantData = kCollectionDontWantData;
  792. const
  793. noCollectionAttributes = kCollectionNoAttributes;
  794. allCollectionAttributes = kCollectionAllAttributes;
  795. userCollectionAttributes = kCollectionUserAttributes;
  796. defaultCollectionAttributes = kCollectionDefaultAttributes;
  797. const
  798. collectionUser0Bit = kCollectionUser0Bit;
  799. collectionUser1Bit = kCollectionUser1Bit;
  800. collectionUser2Bit = kCollectionUser2Bit;
  801. collectionUser3Bit = kCollectionUser3Bit;
  802. collectionUser4Bit = kCollectionUser4Bit;
  803. collectionUser5Bit = kCollectionUser5Bit;
  804. collectionUser6Bit = kCollectionUser6Bit;
  805. collectionUser7Bit = kCollectionUser7Bit;
  806. collectionUser8Bit = kCollectionUser8Bit;
  807. collectionUser9Bit = kCollectionUser9Bit;
  808. collectionUser10Bit = kCollectionUser10Bit;
  809. collectionUser11Bit = kCollectionUser11Bit;
  810. collectionUser12Bit = kCollectionUser12Bit;
  811. collectionUser13Bit = kCollectionUser13Bit;
  812. collectionUser14Bit = kCollectionUser14Bit;
  813. collectionUser15Bit = kCollectionUser15Bit;
  814. collectionReserved0Bit = kCollectionReserved0Bit;
  815. collectionReserved1Bit = kCollectionReserved1Bit;
  816. collectionReserved2Bit = kCollectionReserved2Bit;
  817. collectionReserved3Bit = kCollectionReserved3Bit;
  818. collectionReserved4Bit = kCollectionReserved4Bit;
  819. collectionReserved5Bit = kCollectionReserved5Bit;
  820. collectionReserved6Bit = kCollectionReserved6Bit;
  821. collectionReserved7Bit = kCollectionReserved7Bit;
  822. collectionReserved8Bit = kCollectionReserved8Bit;
  823. collectionReserved9Bit = kCollectionReserved9Bit;
  824. collectionReserved10Bit = kCollectionReserved10Bit;
  825. collectionReserved11Bit = kCollectionReserved11Bit;
  826. collectionReserved12Bit = kCollectionReserved12Bit;
  827. collectionReserved13Bit = kCollectionReserved13Bit;
  828. collectionPersistenceBit = kCollectionPersistenceBit;
  829. collectionLockBit = kCollectionLockBit;
  830. const
  831. collectionUser0Mask = kCollectionUser0Mask;
  832. collectionUser1Mask = kCollectionUser1Mask;
  833. collectionUser2Mask = kCollectionUser2Mask;
  834. collectionUser3Mask = kCollectionUser3Mask;
  835. collectionUser4Mask = kCollectionUser4Mask;
  836. collectionUser5Mask = kCollectionUser5Mask;
  837. collectionUser6Mask = kCollectionUser6Mask;
  838. collectionUser7Mask = kCollectionUser7Mask;
  839. collectionUser8Mask = kCollectionUser8Mask;
  840. collectionUser9Mask = kCollectionUser9Mask;
  841. collectionUser10Mask = kCollectionUser10Mask;
  842. collectionUser11Mask = kCollectionUser11Mask;
  843. collectionUser12Mask = kCollectionUser12Mask;
  844. collectionUser13Mask = kCollectionUser13Mask;
  845. collectionUser14Mask = kCollectionUser14Mask;
  846. collectionUser15Mask = kCollectionUser15Mask;
  847. collectionReserved0Mask = kCollectionReserved0Mask;
  848. collectionReserved1Mask = kCollectionReserved1Mask;
  849. collectionReserved2Mask = kCollectionReserved2Mask;
  850. collectionReserved3Mask = kCollectionReserved3Mask;
  851. collectionReserved4Mask = kCollectionReserved4Mask;
  852. collectionReserved5Mask = kCollectionReserved5Mask;
  853. collectionReserved6Mask = kCollectionReserved6Mask;
  854. collectionReserved7Mask = kCollectionReserved7Mask;
  855. collectionReserved8Mask = kCollectionReserved8Mask;
  856. collectionReserved9Mask = kCollectionReserved9Mask;
  857. collectionReserved10Mask = kCollectionReserved10Mask;
  858. collectionReserved11Mask = kCollectionReserved11Mask;
  859. collectionReserved12Mask = kCollectionReserved12Mask;
  860. collectionReserved13Mask = kCollectionReserved13Mask;
  861. collectionPersistenceMask = kCollectionPersistenceMask;
  862. collectionLockMask = kCollectionLockMask;
  863. {$endc} {OLDROUTINENAMES}
  864. {$endc} {TARGET_OS_MAC}
  865. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  866. end.
  867. {$endc} {not MACOSALLINCLUDE}