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: "Sean McBride" <email@hidden>
- Date: Fri, 2 Nov 2007 11:04:12 -0400
- Organization: Rogue Research
On 11/1/07 9:33 PM, Rainer Brockerhoff said:
>>2007-11-01 17:44:45.457 IBCocoaSimulator[6464:10b] An uncaught
>exception was raised
>>2007-11-01 17:44:45.458 IBCocoaSimulator[6464:10b] *** -
>[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class
>(ClockControl)
>>11/1/07 5:44:45 PM IBCocoaSimulator[6464] *** Terminating app due to
>uncaught exception 'NSInvalidUnarchiveOperationException', reason: '*** -
>[NSKeyedUnarchiver decodeObjectForKey:]: cannot decode object of class
>(ClockControl)'
>
>I ran into that, too.
Me too.
>The thing is, the new simulator is a separate app, and it expects your
>class to be available in a framework; static-linking it into the plugin
>no longer works.
>
>The Xcode template apparently expects you to build your class framework
>to a fixed absolute location (like /Library/Frameworks), and then
>include the ibplugin within the framework's resource folder. And
>apparently you should distribute it that way, too! But then, it's not
>practical for inclusion into an app. Beats me why they decided to do it
>that way...
I don't much like needing a framework either, it's a pain to need a
separate target just to build a framework for one class. Anyway, I
think they did it like that because the simulator now runs as a separate
process, instead of in IB, and so how else is it supposed to get the
code? The good thing is that the crashing simulator does not hurt IB.
Anyway, if you don't care about supporting the simulator, you can just
make a plugin without any framework.
Ricky, I converted the nice SMDoubleSlider code to use an ib3 plugin a
few months ago, now that the NDA is over, I should send it back to the
author. Hopefully he'll want to publish it... it should made a good example.
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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