• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Loading nibs in plugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Loading nibs in plugins
      • From: p3consulting <email@hidden>
    • Re: Loading nibs in plugins
      • From: Robert Cerny <email@hidden>
  • Prev by Date: Re: Disclosure Triangle Icon
  • Next by Date: Re: Transparent Windows WAS: (no subject)
  • Previous by thread: Drag and Drop: Cocoa window in Carbon app...
  • Next by thread: Re: Loading nibs in plugins
  • Index(es):
    • Date
    • Thread