iChat Theatre Sample Code
iChat Theatre Demo (1MB)
Leopard introduced something called iChat Theatre which allows applications to share content with other users via iChat. Apple’s Keynote is the poster child for this in that it allows you to show a presentation to another user via iChat.
Leopard provides an amazingly simply API for integrating this capability into a Cocoa application. My iChat Theatre Demo project shows how to integrate iChat Theatre into a Cocoa application by sharing an NSImageView.
To use the demo, do the following:
- launch the iChatDemo application
- in iChat, begin a Video Chat with another user
- click the + button in the bottom margin of the Video chat button, and select the Share a File option from the popup menu
- in the resulting Open File panel, select the iChatDemo application file
At this point, iChat should begin showing the images displayed by iChatDemo in its window
An alternate usage is to simply drag the iChatDemo application file’s icon into the Video iChat window, but this produces a subtly different presentation in iChat.
About this entry
You’re currently reading “iChat Theatre Sample Code,” an entry on Mark Alldritt's Journal
- Feb 29 2008 / 8:11 am