Re: Grief with porting IB palettes to plugins
Re: Grief with porting IB palettes to plugins
- Subject: Re: Grief with porting IB palettes to plugins
- From: Rainer Brockerhoff <email@hidden>
- Date: Fri, 2 Nov 2007 08:51:04 -0200
At 21:29 -0500 01/11/2007, Ricky Sharp wrote:
>I somehow got past the issue where the plugins refuse to install. Now I'm just back to crashing the Simulator. One thing I just noticed though in IB's list of installed plugins...
>
>If I highlight "Cocoa", the "Required Frameworks" section lists Cocoa.framework (and AppleScriptKit.framework) as required frameworks.
>
>When I highlight "ClockControl" or my own, the "Required Frameworks" section is empty. All other stock plugins all have at least one required framework listed.
You have to implement this in your IBPlugin subclass:
- (NSArray *)requiredFrameworks {
return [NSArray arrayWithObject:[NSBundle bundleWithIdentifier:@"com.yourCompany.yourFramework"]];
}
So that should fix it.
>Thus, perhaps the Simulator is giving me a keyed archiver exception since it cannot actually find the unarchiver class? And that if I somehow set up Cocoa.framework to be required by the plugin that all will be well?
No, from the docs for that method:
>If your plug-in requires any custom frameworks, such as those containing your custom view code, you must override this method and return those frameworks.
>Your implementation of this method should return only those frameworks containing your custom object code. You do not need to return any system frameworks your objects depend on.
All this takes some fiddling around, true.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"In the affairs of others even fools are wise
In their own business even sages err."
Weblog: http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden