Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

735 lines
23 KiB

  1. /*
  2. File: HIObject.h
  3. Contains: Base object for HIToolbox
  4. Version: QuickTime 7.3
  5. Copyright: (c) 2007 (c) 2001 by Apple Computer, Inc., all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://developer.apple.com/bugreporter/
  9. */
  10. #ifndef __HIOBJECT__
  11. #define __HIOBJECT__
  12. #ifndef __CORESERVICES__
  13. #include <CoreServices.h>
  14. #endif
  15. #ifndef __COREFOUNDATION__
  16. #include <CoreFoundation.h>
  17. #endif
  18. #ifndef __CARBONEVENTSCORE__
  19. #include <CarbonEventsCore.h>
  20. #endif
  21. #if PRAGMA_ONCE
  22. #pragma once
  23. #endif
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. #if PRAGMA_IMPORT
  28. #pragma import on
  29. #endif
  30. /*
  31. * HIObject
  32. *
  33. * Discussion:
  34. * HIObject is the HIToolbox's base class for various objects. Over
  35. * time, all of our common objects (controls, windows, menus, etc.)
  36. * will be derived from HIObject. Code which is external to
  37. * HIToolbox can also create its own subclasses of our objects using
  38. * the routines contained in this file. There are also polymorphic
  39. * functions one can use on any HIObject for getting the class ID,
  40. * etc.
  41. *
  42. * HIObjects are actually CF types under the hood. This means that
  43. * they can be put into CF collections and retain/release can be
  44. * called on them.
  45. *
  46. * An HIObject is essentially a very basic building-block object
  47. * which contains an event target. You can create these objects to
  48. * use as your own Carbon Event receptors in your application, or
  49. * you can subclass existing Toolbox object to suit your needs.
  50. *
  51. *
  52. * You register your subclasses with HIObjectRegisterSubclass,
  53. * passing your class ID, the parent class, and an event handler.
  54. * You also pass a list of events the handler is interested in.
  55. *
  56. *
  57. * To create an object of your subclass, you call HIObjectCreate,
  58. * passing the class ref you registered, as well as an
  59. * initialization event.
  60. *
  61. * Construction is two-phase: first the basic construction of the
  62. * object is done, then initialization is performed. The toolbox
  63. * sends construction events bottom-up, as you would expect in C++
  64. * or the like. Here is the list of what goes on to create an
  65. * object:
  66. *
  67. * 1) The Toolbox creates the base HIObject
  68. *
  69. * 2) It then installs the event handler you specified when you
  70. * registered your subclass. Your handler must listen for
  71. * kEventHIObjectConstruct and kEventHIObjectDestruct events. If it
  72. * does not, the class cannot be registered (you will get a
  73. * paramErr).
  74. *
  75. * 3) Next, the Toolbox _directly_ calls your handler with an
  76. * kEventHIObjectConstruct event. When called like this, you are not
  77. * really being called in the context of a handler stack, so you
  78. * cannot do things like CallNextEventHandler. The userData
  79. * parameter is what you specified when you registered the class.
  80. * Typically, during construction you will allocate memory yourself
  81. * to store your own instance data; this allocation might be as
  82. * simple as calling malloc or NewPtr, or it might involve creating
  83. * your own C++ object. In the construct event, you are passed the
  84. * base HIObjectRef of the object being created. Typically you would
  85. * store this HIObjectRef in your own instance data for later use.
  86. * When handling this construct event, you should be sure to use
  87. * SetEventParameter to set the kEventParamHIObjectInstance
  88. * parameter in the construction event with your own instance data.
  89. * You must use typeVoidPtr as the type.
  90. *
  91. * 4) The Toolbox looks for your instance of typeVoidPtr after you
  92. * handle the construct event. It then takes that data and stores it
  93. * off with the object and also sets the user data of the event
  94. * handler it installed to be this instance data. This means that
  95. * following the construct event, all calls to your event handler
  96. * will have the instance data you returned to us.
  97. *
  98. * 5) Once construction has completed successfully, we will send
  99. * your object the initialize event passed into HIObjectCreate. At
  100. * this point, all events are now sent to your object using standard
  101. * Carbon Events mechanisms (it is only the construct event which is
  102. * special). When we send the initialization event to your subclass,
  103. * you should pass the event to your superclass before proceeding.
  104. * You do this with CallNextEventHandler. Once back from that call,
  105. * you should verify that the result is noErr, indicating that the
  106. * superclass did in fact initialize properly. If it did not, your
  107. * should return the error that CallNextEventHandler returned from
  108. * your handler as well. The object will be destroyed by the
  109. * Toolbox. Your object should be able to be destroyed in a
  110. * partially initialized state such as this. This stage is optional,
  111. * i.e. an object does not need to respond to the initialize event
  112. * unless it is expecting certain parameters to be passed to it at
  113. * creation time. This is where those parameters can be fetched.
  114. *
  115. *
  116. * 6) Once initialization is successful, the HIObjectRef is
  117. * returned to the caller of HIObjectCreate. From there, you can
  118. * have all sorts of cool fun.
  119. *
  120. * When someone has called HIObjectRelease enough such that the
  121. * refcount of the object drops to zero, the object is destroyed.
  122. * The Toolbox will send a kEventHIObjectDestruct event to your
  123. * object. DO NOT CALL CALLNEXTEVENTHANDLER. You will be setting
  124. * yourself up for some hurt. Just clean up and return from your
  125. * handler.
  126. */
  127. typedef struct OpaqueHIObjectClassRef* HIObjectClassRef;
  128. typedef struct OpaqueHIObjectRef* HIObjectRef;
  129. /*
  130. * Discussion:
  131. * HIObject errors
  132. */
  133. enum {
  134. /*
  135. * You are trying to register a class ID that already exists.
  136. */
  137. hiObjectClassExistsErr = -22080,
  138. /*
  139. * You are trying to unregister a class which has instances which
  140. * still exist. You must destroy them first, before they destroy you!
  141. */
  142. hiObjectClassHasInstancesErr = -22081,
  143. hiObjectClassHasSubclassesErr = -22082,
  144. /*
  145. * You are trying to create an HIObject class that is defined as
  146. * being abstract. You must subclass it instead. Oh yes. Don't make
  147. * us say it twice!
  148. */
  149. hiObjectClassIsAbstractErr = -22083
  150. };
  151. /*
  152. Parameters for HIObject events:
  153. kEventHIObjectConstruct
  154. --> kEventParamHIObjectInstance typeHIObjectRef
  155. kEventHIObjectInitialize
  156. This is up to the class and any superclasses. It will contain the
  157. union of all parameters needed by all classes to properly construct.
  158. kEventHIObjectDestruct
  159. No parameters are passed.
  160. kEventHIObjectIsEqual
  161. --> kEventParamDirectObject typeHIObjectRef
  162. kEventHIObjectPrintDebugInfo
  163. no parameters
  164. */
  165. /*
  166. * Discussion:
  167. * These enums define the base class functionality of HIObjects. You
  168. * should only need to be aware of these if you are implementing a
  169. * subclass.
  170. */
  171. enum {
  172. /*
  173. * The event class for HIObject events
  174. */
  175. kEventClassHIObject = FOUR_CHAR_CODE('hiob'),
  176. /*
  177. * Your object is being constructed. When your event handler is
  178. * called with this event, it is being called directly and not
  179. * through the normal event dispatching mechanism. This means that
  180. * the EventHandlerCallRef passed to your handler will be NULL and
  181. * CallNextEventHandler will not work. You are passed the actual
  182. * HIObjectRef of your base class for you to record in your instance
  183. * data.
  184. */
  185. kEventHIObjectConstruct = 1,
  186. /*
  187. * Your object is being initialized. Your handler should pass this
  188. * onto the superclass first before handling this event. This is done
  189. * by calling CallNextEventHandler with the event. When that function
  190. * returns, you should make sure the result is noErr. If not, you
  191. * should NOT continue to initialize your class.
  192. */
  193. kEventHIObjectInitialize = 2,
  194. /*
  195. * Your object is being destroyed. This is your chance to dispose of
  196. * anything you might have allocated for your object. Do NOT call
  197. * through with CallNextEventHandler, as you will disrupt the fabric
  198. * of space-time.
  199. */
  200. kEventHIObjectDestruct = 3,
  201. /*
  202. * HIObjectIsEqual has been called, and you are being asked to
  203. * determine if your object is equivalent to the one being passed to
  204. * your handler. You should return true if so, and false if not.
  205. */
  206. kEventHIObjectIsEqual = 4,
  207. /*
  208. * HIObjectPrintDebugInfo has been called, and you are being asked to
  209. * print your information to stdout. This event is sent to all
  210. * handlers and you should NOT call CallNextEventHandler.
  211. */
  212. kEventHIObjectPrintDebugInfo = 5
  213. };
  214. enum {
  215. kEventParamHIObjectInstance = FOUR_CHAR_CODE('hioi'),
  216. typeHIObjectRef = FOUR_CHAR_CODE('hiob')
  217. };
  218. #define _HIObjectRegisterSubclass HIObjectRegisterSubclass
  219. /*
  220. * HIObjectRegisterSubclass()
  221. *
  222. * Discussion:
  223. * Registers a class with the Toolbox for creation later.
  224. *
  225. * Parameters:
  226. *
  227. * inClassID:
  228. * The class ID of your class. It should be unique. We recommend
  229. * using Java-style com.company.foo naming conventions to avoid
  230. * collisions.
  231. *
  232. * inBaseClassID:
  233. * The class ID of the class you derive from. Passing NULL
  234. * indicates you wish to subclass HIObject (the base class)
  235. * directly.
  236. *
  237. * inOptions:
  238. * Any special options for your class. Currently you must pass 0
  239. * for this parameter.
  240. *
  241. * inConstructProc:
  242. * The construction proc for this subclass. You pass the address
  243. * of an event handler into this parameter. This handler is called
  244. * directly, rather than through the normal event dispatching
  245. * mechanism. This means that the EventHandlerCallRef passed in
  246. * will be NULL, and you cannot use it for calls like
  247. * CallNextEventHandler. Other than that, you should return a
  248. * result as usual. After your object is constructed, this proc
  249. * will be installed as the event handler for the remaining events
  250. * specified in the inEventList parameter.
  251. *
  252. * inNumEvents:
  253. * The number of events you are installing.
  254. *
  255. * inEventList:
  256. * The events your handler wishes to receive. You must handle the
  257. * kEventHIObjectConstruct and kEventHIObjectDestruct event. If
  258. * these events are not specified, an error is returned.
  259. *
  260. * inConstructData:
  261. * Pass any info you want passed into your event handler here. For
  262. * a C++ hierarchy based on HIObjects, you might actually pass a
  263. * static method to construct your object here, and the base class
  264. * event handler to do construction as your event handler.
  265. *
  266. * outClassRef:
  267. * The newly created class reference. Pass NULL if you don't care.
  268. *
  269. * Result:
  270. * An operating system result code.
  271. *
  272. * Availability:
  273. * Non-Carbon CFM: not available
  274. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  275. * Mac OS X: in version 10.2 and later
  276. */
  277. EXTERN_API_C( OSStatus )
  278. HIObjectRegisterSubclass(
  279. CFStringRef inClassID,
  280. CFStringRef inBaseClassID,
  281. OptionBits inOptions,
  282. EventHandlerUPP inConstructProc,
  283. UInt32 inNumEvents,
  284. const EventTypeSpec * inEventList,
  285. void * inConstructData,
  286. HIObjectClassRef * outClassRef); /* can be NULL */
  287. /*
  288. * HIObjectUnregisterClass()
  289. *
  290. * Discussion:
  291. * Unregisters a previously registered subclass of HIObject. You
  292. * will receive an error if there are subclasses of your class or
  293. * instances of it which still exist. All instances and subclasses
  294. * must be disposed of and unregistered first.
  295. *
  296. * Parameters:
  297. *
  298. * inClassRef:
  299. * The class ref of the class of object you wish to unregister.
  300. *
  301. * inConstructData:
  302. *
  303. * Availability:
  304. * Non-Carbon CFM: not available
  305. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  306. * Mac OS X: in version 10.2 and later
  307. */
  308. EXTERN_API_C( OSStatus )
  309. HIObjectUnregisterClass(HIObjectClassRef inClassRef);
  310. #define _HIObjectCreate HIObjectCreate
  311. /*
  312. * HIObjectCreate()
  313. *
  314. * Discussion:
  315. * Creates an object derived from HIObject.
  316. *
  317. * Parameters:
  318. *
  319. * inClassID:
  320. * The class ID of the class of object you wish to instantiate.
  321. *
  322. * inConstructData:
  323. * If your class (or any class you derive from) accepts creation
  324. * parameters, you need to pass an event into this parameter. The
  325. * class must be kEventClassHIObject, and the kind should be
  326. * kEventHIObjectInitialize. Any other parameters should be added
  327. * as necessary. Specific subclasses of HIObject which require
  328. * initialization parameters will specify those parameters in the
  329. * appropriate headers.
  330. *
  331. * outObject:
  332. * The instance of the object you create.
  333. *
  334. * Result:
  335. * An operating system result code.
  336. *
  337. * Availability:
  338. * Non-Carbon CFM: not available
  339. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  340. * Mac OS X: in version 10.2 and later
  341. */
  342. EXTERN_API_C( OSStatus )
  343. HIObjectCreate(
  344. CFStringRef inClassID,
  345. EventRef inConstructData,
  346. HIObjectRef * outObject);
  347. #define _HIObjectGetEventTarget HIObjectGetEventTarget
  348. /*
  349. * HIObjectGetEventTarget()
  350. *
  351. * Discussion:
  352. * Returns the event target of an HIObjectRef.
  353. *
  354. * Parameters:
  355. *
  356. * inObject:
  357. * The object whose target you want.
  358. *
  359. * Result:
  360. * An EventTargetRef.
  361. *
  362. * Availability:
  363. * Non-Carbon CFM: not available
  364. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  365. * Mac OS X: in version 10.2 and later
  366. */
  367. EXTERN_API_C( EventTargetRef )
  368. HIObjectGetEventTarget(HIObjectRef inObject);
  369. #define _HIObjectPrintDebugInfo HIObjectPrintDebugInfo
  370. /*
  371. * HIObjectPrintDebugInfo()
  372. *
  373. * Discussion:
  374. * Prints the internal information of an HIObject for debugging
  375. * purposes. It outputs the info to stdout.
  376. *
  377. * Parameters:
  378. *
  379. * inObject:
  380. * The object to inspect.
  381. *
  382. * Availability:
  383. * Non-Carbon CFM: not available
  384. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  385. * Mac OS X: in version 10.2 and later
  386. */
  387. EXTERN_API_C( void )
  388. HIObjectPrintDebugInfo(HIObjectRef inObject);
  389. #define _HIObjectCopyClassID HIObjectCopyClassID
  390. /*
  391. * HIObjectCopyClassID()
  392. *
  393. * Discussion:
  394. * Returns the class ID of a given HIObject.
  395. *
  396. * Parameters:
  397. *
  398. * inObject:
  399. * The object whose class ID you are interested in.
  400. *
  401. * Result:
  402. * A CFStringRef containing the object's class ID.
  403. *
  404. * Availability:
  405. * Non-Carbon CFM: not available
  406. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  407. * Mac OS X: in version 10.2 and later
  408. */
  409. EXTERN_API_C( CFStringRef )
  410. HIObjectCopyClassID(HIObjectRef inObject);
  411. #define _HIObjectIsOfClass HIObjectIsOfClass
  412. /*
  413. * HIObjectIsOfClass()
  414. *
  415. * Discussion:
  416. * Returns whether or not an object is of a certain class. You can
  417. * us this to see whether or not an object you have derives from an
  418. * expected superclass.
  419. *
  420. * Parameters:
  421. *
  422. * inObject:
  423. * The object whose class ID you wish to check.
  424. *
  425. * inObjectClassID:
  426. * The class ID in question.
  427. *
  428. * Result:
  429. * A Boolean result indicating whether or not the object is of the
  430. * class specified.
  431. *
  432. * Availability:
  433. * Non-Carbon CFM: not available
  434. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  435. * Mac OS X: in version 10.2 and later
  436. */
  437. EXTERN_API_C( Boolean )
  438. HIObjectIsOfClass(
  439. HIObjectRef inObject,
  440. CFStringRef inObjectClassID);
  441. #define _HIObjectDynamicCast HIObjectDynamicCast
  442. /*
  443. * HIObjectDynamicCast()
  444. *
  445. * Discussion:
  446. * Returns the instance data for a specific class of an HIObject.
  447. * The instance data returned is the same instance data the class's
  448. * construction event handler returns in the instance data
  449. * parameter. This is stored off with the class reference so that it
  450. * can be fetched later for use by this function. It allows your
  451. * subclass to easily get at the data it created, if your subclass
  452. * needs that data outside of an event handler. (Inside an event
  453. * handler, your subclass can get at its instance data via the
  454. * userData parameter to the event handler.)
  455. *
  456. * Parameters:
  457. *
  458. * inObject:
  459. * The object whose class ID you wish to check.
  460. *
  461. * inClassID:
  462. * The class ID to get the instance data for.
  463. *
  464. * Result:
  465. * A void * result which contains the instance data for the object,
  466. * or NULL if the object is not an instance of the class.
  467. *
  468. * Availability:
  469. * Non-Carbon CFM: not available
  470. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  471. * Mac OS X: in version 10.2 and later
  472. */
  473. EXTERN_API_C( void * )
  474. HIObjectDynamicCast(
  475. HIObjectRef inObject,
  476. CFStringRef inClassID);
  477. /*
  478. * HIObjectCreateFromBundle()
  479. *
  480. * Discussion:
  481. * Returns the HIObject for the given bundle. A bundle can be
  482. * designed to communicate with an app through an HIObject. The
  483. * bundle must be designed to create an HIObject and have a defined
  484. * suite of CarbonEvents that clients can use to communicate with
  485. * the bundle's HIObject. Given a CFBundleRef, this API will tell
  486. * the bundle to create the HIObject and return it to the caller.
  487. *
  488. * Parameters:
  489. *
  490. * inBundle:
  491. * The bundle that you wish to communicate with.
  492. *
  493. * outObject:
  494. * The HIObject associated with the bundle.
  495. *
  496. * Result:
  497. * An operating system result code. If the bundle's HIObject
  498. * creation function cannot be found, cfragNoSymbolErr will be
  499. * returned.
  500. *
  501. * Availability:
  502. * Non-Carbon CFM: not available
  503. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  504. * Mac OS X: in version 10.2 and later
  505. */
  506. EXTERN_API_C( OSStatus )
  507. HIObjectCreateFromBundle(
  508. CFBundleRef inBundle,
  509. HIObjectRef * outObject);
  510. /*
  511. * HIObjectIsAccessibilityIgnored()
  512. *
  513. * Discussion:
  514. * Reports whether or not the given HIObject is marked as ignored
  515. * for accessibility.
  516. * See the discussion of HIObjectSetAccessibilityIgnored for details
  517. * on what it means to be accessibility ignored.
  518. *
  519. * Parameters:
  520. *
  521. * inObject:
  522. * The object whose accessibility ignored state you wish to query.
  523. *
  524. * Result:
  525. * A Boolean value indicating whether or not the HIObject is ignored
  526. * for accessibility.
  527. *
  528. * Availability:
  529. * Non-Carbon CFM: not available
  530. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  531. * Mac OS X: in version 10.2 and later
  532. */
  533. EXTERN_API_C( Boolean )
  534. HIObjectIsAccessibilityIgnored(HIObjectRef inObject);
  535. /*
  536. * HIObjectSetAccessibilityIgnored()
  537. *
  538. * Discussion:
  539. * Marks an HIObject as ignored (or not) for the purposes of the
  540. * accessibility APIs.
  541. * An HIObject that is ignored for accessibility will never be shown
  542. * to an assistive application that uses the accessibility APIs to
  543. * examine an interface. Your application's accessibility
  544. * implementation can (and should) still report an ignored HIObject
  545. * as usual. Carbon's accessibility engine will automatically prune
  546. * any ignored HIObjects out of the data that is shown to an
  547. * assistive application.
  548. * By default, an HIObject is *not* accessibility ignored.
  549. *
  550. * Parameters:
  551. *
  552. * inObject:
  553. * The object whose accessibility ignored state you wish to change.
  554. *
  555. * inIgnored:
  556. * A Boolean value indicating whether or not to ignore the object.
  557. *
  558. * Result:
  559. * An OSStatus signifying success or failure.
  560. *
  561. * Availability:
  562. * Non-Carbon CFM: not available
  563. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  564. * Mac OS X: in version 10.2 and later
  565. */
  566. EXTERN_API_C( OSStatus )
  567. HIObjectSetAccessibilityIgnored(
  568. HIObjectRef inObject,
  569. Boolean inIgnored);
  570. /*==============================================================================*/
  571. /* DEPRECATED! DO NOT USE. USE CF ROUTINES INSTEAD!!! */
  572. /*==============================================================================*/
  573. /* Use CFRetain instead!*/
  574. /*
  575. * _HIObjectRetain()
  576. *
  577. * Availability:
  578. * Non-Carbon CFM: not available
  579. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  580. * Mac OS X: in version 10.2 and later
  581. */
  582. EXTERN_API_C( HIObjectRef )
  583. _HIObjectRetain(HIObjectRef inObject);
  584. /* Use CFRelease instead!*/
  585. /*
  586. * _HIObjectRelease()
  587. *
  588. * Availability:
  589. * Non-Carbon CFM: not available
  590. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  591. * Mac OS X: in version 10.2 and later
  592. */
  593. EXTERN_API_C( void )
  594. _HIObjectRelease(HIObjectRef inObject);
  595. /* Use CFGetRetainCount instead!*/
  596. /*
  597. * _HIObjectGetRetainCount()
  598. *
  599. * Availability:
  600. * Non-Carbon CFM: not available
  601. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  602. * Mac OS X: in version 10.2 and later
  603. */
  604. EXTERN_API_C( UInt32 )
  605. _HIObjectGetRetainCount(HIObjectRef inObject);
  606. /* Use CFEqual instead!*/
  607. /*
  608. * _HIObjectIsEqual()
  609. *
  610. * Availability:
  611. * Non-Carbon CFM: not available
  612. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  613. * Mac OS X: in version 10.2 and later
  614. */
  615. EXTERN_API_C( Boolean )
  616. _HIObjectIsEqual(
  617. HIObjectRef inObject,
  618. HIObjectRef inOtherObject);
  619. /*
  620. These are no longer necessary! Just put the HIObjectRef directly into
  621. an array using the standard CFType callbacks.
  622. */
  623. /*
  624. * kHIObjectCFArrayCallbacks
  625. *
  626. * Availability:
  627. * Non-Carbon CFM: not available
  628. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  629. * Mac OS X: in version 10.2 and later
  630. */
  631. extern const CFArrayCallBacks kHIObjectCFArrayCallbacks;
  632. /*
  633. * kHIObjectCFDictKeyCallbacks
  634. *
  635. * Availability:
  636. * Non-Carbon CFM: not available
  637. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  638. * Mac OS X: in version 10.2 and later
  639. */
  640. extern const CFDictionaryKeyCallBacks kHIObjectCFDictKeyCallbacks;
  641. /*
  642. * kHIObjectCFDictValueCallbacks
  643. *
  644. * Availability:
  645. * Non-Carbon CFM: not available
  646. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  647. * Mac OS X: in version 10.2 and later
  648. */
  649. extern const CFDictionaryValueCallBacks kHIObjectCFDictValueCallbacks;
  650. #ifdef PRAGMA_IMPORT_OFF
  651. #pragma import off
  652. #elif PRAGMA_IMPORT
  653. #pragma import reset
  654. #endif
  655. #ifdef __cplusplus
  656. }
  657. #endif
  658. #endif /* __HIOBJECT__ */