On Mar 13, 2006, at 12:55 PM, Garth Hjelte wrote:
I am trying to use a the IOFramework in my plugin.
Are Frameworks only for MachO things?
Yes and no. They contain only Mach-O code, but they can be used in
PEF code via CFBundle.
And forgive the following oft-repeated questions but I lost track
of...
If I have to use MachO, I have to make a MachO plugin and make a
MachO application?
That's the simplest approach. However, you can dynamically load code
from the framework with the CFBundle routines. It's a lot of work,
and if you have no good reason to stay PEF, I would recommend not
doing it.
If I make a MachO app, all my plugins that I use must be MachO?
No. REALbasic has a CFM to Mach-O bridge built in that automatically
allows PEF plugins to work in Mach-O applications. There isn't such a
bridge in the other direction, however.
and
If I want to avoid making a plugin, can I make some other type of
shared library that houses this functionality and call it from RB?
Yes, although if you're simply going to wrap a Framework, you can
just declare into the framework and save having an extra library.
and
I did make a MachO build of my app, but it now takes about a minute
to open up, whereas the PEF app only takes 1-2 seconds. Any idea why?
No idea. I haven't ever seen that before.
HTH,
Jon
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>