Version: 1.0.3

Posted: 2005-08-10

Build Requirements: Mac OS X 10.3

Runtime Requirements: Mac OS X 10.3

View Source Code:

Download Sample (“HIObjectThreadController.zip”, 52.7K)
Download Sample (“HIObjectThreadController.dmg”, 105.8K)



Description

This sample code shows how to create a Thread Controller HIObject which will act as the controller between the User Interface and the thread.

This sample code has been updated to include a project that produces a universal binary. No code changes were required for it to run correctly on the Developer Transition Systems.

Thus the User Interface controls the thread and the thread can easily communicate with the User Interface.

Relies mainly on the PostEventToQueue API (CarbonEventsCore.h).

Document Revision History

Date Notes
2005-08-10Updated to produce a universal binary. No code changes were required.
2005-05-05Minor fix to handle correctly GetMainEventQueue which is almost thread-safe in Mac OS X v10.3.
2005-01-11Minor Spelling fixes. See Radar #3719035 for more information.
2004-06-08Shows how threads can interact with the User Interface handled by the main thread of the application.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.