What's New in QuickTime 5

| Previous | Chapter Contents | Chapter Top | Next |

Recommended Procedures

There are several recommended procedures that you ought to follow. In the case of a Mach-O bundle, you should only export the component entry points. In fact, they must be exported. You should link with a -bundle linker option to help control the name space.

When you are building a Mach-O executable, the 'thng' resource must specify the platform type as 5 and the code resource type as 'dlle' . Thus, you need to have an associated 'dlle' resource containing the component's entry point name.

The other recommendation is that similar to other dynamically loaded pieces of code, your component files should not contain global variables.

For more information on building CFM and Mach-O QuickTime components for Mac OS X, refer to Technote 2012 at http://developer.apple.com/technotes/tn/tn2012.html . The Technote discusses in depth the changes that are required in order to move existing QuickTime components to Mac OS X.


© 2001 Apple Computer, Inc.

What's New in QuickTime 5

| Previous | Chapter Contents | Chapter Top | Next |