• 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: Grief with porting IB palettes to plugins
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Grief with porting IB palettes to plugins
      • From: RICKY SHARP <email@hidden>
References: 
 >Grief with porting IB palettes to plugins (From: Rainer Brockerhoff <email@hidden>)
 >Re: Grief with porting IB palettes to plugins (From: Ricky Sharp <email@hidden>)
 >Re: Grief with porting IB palettes to plugins (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: Where's my NSLog output?
  • Next by Date: Re: Grief with porting IB palettes to plugins
  • Previous by thread: Re: Grief with porting IB palettes to plugins
  • Next by thread: Re: Grief with porting IB palettes to plugins
  • Index(es):
    • Date
    • Thread