Re: Cocoa with CodeWarrior?
Re: Cocoa with CodeWarrior?
- Subject: Re: Cocoa with CodeWarrior?
- From: Andrew Kimpton <email@hidden>
- Date: Sun, 9 Sep 2007 19:20:56 -0400
On Sep 9, 2007, at 4:24 PM, Nick Zitzmann wrote:
On Sep 9, 2007, at 4:01 AM, Matthias LoCal Schonder wrote:
I've to develop a plugin for an old server.app that had been
developed with CodeWarrior. So I have to use CW (if I can get a
copy) for development.
You shouldn't have to unless the CW-compiled code uses any C++
code. The C and ObjC symbols ought to be the same between CW and GCC.
So long as Matthias' plugin can be in the Mach-O format this would be
true. But... if you're 'forced' into using CodeWarrior is that
because the host application can only load PEF based dynamic
libraries ? If that's true then it's probably best to invest some
time in writing some sort of 'shim' which is in PEF object format
(and you'll still need Codewarrior for that) which will use the
CFBundle API to load a Mach-O based version and the call from the PEF
entry point to the corresponding Mach-O entry point, and vice-versa.
There's some pretty old sample code I think on the Apple site which
explains most of the details.
Once you've got a thin (but perhaps wide - lot's of entry points can
make this tedious to write) shim then you can develop the rest of the
plugin in XCode and so long as you preserve the same C style entry
points you can use whatever technology you wish (though make sure
you've reviewed the appropriate tech notes etc. if you're trying to
embed NSView's and the like in a window created by Carbon API's).
Andrew 8-)
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden