Plugin Bundle Strangeness
Plugin Bundle Strangeness
- Subject: Plugin Bundle Strangeness
- From: Jaime Magiera <email@hidden>
- Date: Fri, 15 Feb 2008 21:17:21 -0500
Hello,
I've been playing around with loading plugins dynamically. There's
some fundamental piece I'm missing: I'm able to successfully load the
bundles on application launch. An NSMutableArray of Class items from
those bundles are available in the app delegate. When I grab one of
the classes and attempt to initialize, everything goes well except for
the loading of the bundle's NIB. It's strange, because [theBundle
load] returns true. Also, a call to allBundles shows that the bundle
was loaded. The NIB is in the English.lproj folder of the plugin
bundle. The NIB consists of a NSView subclass. All methods and non-NIB
values values of the instance return properly. It's only the NIB items
that are unavailable. The plugin class uses self = [super
initWithWindowNibName:@"NIBName" owner:self] in the init method.
To test what was going wrong, I copied the plugin bundle to my
resources folder. If I do that... without changing *any* code... the
app works fine and the NSView loads. It's almost as if the bundle
loaded at launch is not the same bundle being referenced after
initialization, or there's something wrong with the plugin
configuration that it's searching for the NIB in the wrong location.
thanks for any thoughts on this,
Jaime Magiera
Sensory Research
http://www.sensoryresearch.net
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden