[NSBundle load]
[NSBundle load]
- Subject: [NSBundle load]
- From: "jgrosjean " <email@hidden>
- Date: Tue, 28 Aug 2001 12:52:38 -0400
I'm wondering if its possible to load the classes of an .app using [NSBundle load]. My program looks something like this:
// this successfully creates a bundle.
NSBundle *bundle = [NSBundle bundleWithPath:myApplicationBundlePath];
// but this fails to load the application classes. using 'po' in GDB
// displays (bundle not yet loaded).
[bundle load];
// this successfully creates a bundle.
NSBundle *bundle = [NSBundle bundleWithPath:myFrameworkBundlePath];
// this successfully loads the bundle.
[bundle load];
I'm wondering why I cant load the classes in the .app bundle, but can successfully load the classes in the .framework bundle using the same code.
Thanks for any help,
Jesse