Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > WebObjects Developer's Guide


Table of Contents Previous Section

Dynamically Loading Frameworks

When you run your WebObjects applications, you can specify extra frameworks to be dynamically loaded using the WOLoadFrameworks command-line option. You use this option as follows:

./HelloWorld -WOLoadFrameworks "(aFramework, bFramework, ...)"
The ".framework" extension is optional. If you specify a relative path to the framework (as in the example above), directories in your DYLD_FRAMEWORK_PATH are checked and, if the framework isn't found there, the directories specified by the NSProjectSearchPath are checked. Frameworks specified using WOLoadFrameworks are loaded just after the application class has been initialized. Each framework is loaded by invoking the framework's principal class' init method; you'll need to set the NSPrincipalClass in your framework's CustomInfo.plist in order to take advantage of this feature.

Table of Contents Next Section