• 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
Re: Loading nibs in plugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Loading nibs in plugins


  • Subject: Re: Loading nibs in plugins
  • From: Robert Cerny <email@hidden>
  • Date: Fri, 20 Feb 2004 08:13:51 +0100

Hi John,
I believe that your problem is that you asks for nib outlets to soon.
Wait until -awakeFromNib is called and make all gui setup there.

HTH
Robert
On 20.2.2004, at 0:39, John Timmer wrote:

> 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.

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
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.

References: 
 >Loading nibs in plugins (From: John Timmer <email@hidden>)

  • Prev by Date: Re: Data Source object for NSTableView
  • Next by Date: Re: Drag and Drop: Cocoa window in Carbon app...
  • Previous by thread: Loading nibs in plugins
  • Next by thread: Re: Loading nibs in plugins
  • Index(es):
    • Date
    • Thread