What's New in QuickTime 5
| Previous | Chapter Contents | Chapter Top | Next |
There are two types of component executables on Mac OS X: Code Fragment Manager (CFM) and Mach-O. You can also build a CFM component updated for Carbon that runs on both Mac OS X and Mac OS 9.
Third-party components are typically stored in the /Library/QuickTime directory, formerly known as the QuickTime Extensions folder. Programmatically, you find this folder by calling FindFolder with the constant kQuickTimeExtensionsFolderType .
Both types of executables -- CFM and Mach-O -- can be packaged in either one of two ways.
As far as components are concerned, there are two important differences between the regular plug-in bundle and the component as a bundle. These have to do with the bundles' package info file -- PkgInfo -- which is an 8 byte file that's effectively a type and creator for the bundle, with the first 4 bytes being the type and the second 4 bytes being the creator. For example, Apple's components all have 'thngapp1' in that file. Similarly, in the Info.plist file within the bundle that's an XML property list, there is a key in the Info.plist file called CFBundlePackageType . It should have the value 'thng' to identify this as a component.
What's New in QuickTime 5
| Previous | Chapter Contents | Chapter Top | Next |