Re: FxPlug and Obj-C 2.0
Re: FxPlug and Obj-C 2.0
- Subject: Re: FxPlug and Obj-C 2.0
- From: Steve Christensen <email@hidden>
- Date: Thu, 03 Jul 2008 13:57:49 -0700
On Jul 3, 2008, at 9:31 AM, Darrin Cardani wrote: On Jul 2, 2008, at 4:31 PM, Steve Christensen wrote: I'm not actually writing any Leopard-only plugins, but are there any restrictions in terms of running a Obj-C 2.0 plugin inside a Obj-C 1.0 or Carbon host? Just wondering since this came up in a conversation I had this afternoon. I figure there would be some gotchas since, at the very least, the FxPlug APIs aren't Obj-C 2.0, if I understand everything correctly...
I asked around internally, and here are the responses I got:
I don't know where this is documented, but a given process has to be entirely GC or non-GC, so you can't load a plug-in that requires GC into a non-GC host process.
I think that the answer is that ObjC 2.0 features requires the Objc 2.0 runtime - in other words that you have to run on Leopard or later. I wouldn't expect that you would have to re-compile the host app on Leopard in order to be able to support plugins using ObjC 2.0 features, but I might be mistaken. You would in any case have to consider what was said about GC.
There are no constraints on "Objective-C 2.0 vs Objective-C 1.0" in a single process. Objective-C 2.0 is a collection of new features, not an incompatibly different language.
Constraints that do exist: * Code using Objective-C 2.0 features does not work before Leopard. * Code using GC and code using non-GC cannot be used in a single process.
So it's possible with the constraints listed above. And if you do get it working, let us know, as I'm sure you won't be the last person to want to do it!
Well, I'm not likely to do it for awhile since that limits what OS versions my plugins can run on. Tiger's still very viable.
Thanks for the info... steve
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Pro-apps-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden