Re: Loading Cocoa Bundles
Re: Loading Cocoa Bundles
- Subject: Re: Loading Cocoa Bundles
- From: "M. Uli Kusterer" <email@hidden>
- Date: Sun, 27 Feb 2005 14:08:53 +0100
At 10:39 Uhr -0700 25.02.2005, Chaz McGarvey wrote:
I am trying to dynamically load a bundle (for a plugin architecture)
using NSBundle, but it fails to load. Here is the loading code I'm
using:
// load plugin
if ( !bundle ) {
NSLog( @"no bundle.." );
}
if ( ![bundle load] ) {
NSLog( @"bundle didn't load" );
}
_pluginClass = [bundle principalClass];
// now instantiate, etc.
// end
It *might* help if you showed us how "bundle" is actually created, you know...?
Nobody's here to steal your code (at least not if it's that pointless
:-p), so don't be afraid and paste some more.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden