Loading nibs in plugins
Loading nibs in plugins
- Subject: Loading nibs in plugins
- From: John Timmer <email@hidden>
- Date: Thu, 19 Feb 2004 18:39:30 -0500
I've found one or two examples of creating and loading a plugin, but I seem
to not be getting something. I'd like to have an object that's got a couple
of outlets in a nib file in order to access some interface elements. If I
do:
while ( pluginPath = [pluginEnumerator nextObject] ) {
pluginBundle = [NSBundle bundleWithPath: pluginPath];
if (pluginClass = [pluginBundle principalClass]) {
if ([pluginClass conformsToProtocol:@protocol(myProtocol)] ) {
aPlugin = [[pluginClass alloc] init];
}
}
I do get a valid object with the appropriate structure, so I know that the
bundle and class are working properly. The problem seems to be that the
alloc/init combination doesn't hook up the outlets within the nib (they're
set to 0). Given that, what do I use to to initialize one of these objects
while properly hooking up the nib outlets?
Any help would be appreciated.
Cheers,
John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.