realbasic-plugins
[Top] [All Lists]

Re: Change of Suggested Mach-O Plugin Format

To: REALbasic Plugins <realbasic-plugins at lists dot realsoftware dot com>
Subject: Re: Change of Suggested Mach-O Plugin Format
From: Jonathan Johnson <jonj at realsoftware dot com>
Date: Wed, 3 Jan 2007 20:50:09 -0600
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-plugins at lists dot realsoftware dot com
References: <4210A73C-5963-4727-9EF2-BA136D93E004 at realsoftware dot com> <87B34069-CD68-466F-B101-AFC4364A3BB5 at mac dot com>

On Jan 3, 2007, at 7:30 PM, Alfred Van Hoek wrote:


On Jan 3, 2007, at 6:48 PM, Jonathan Johnson wrote:

For future versions of REALbasic, we have implemented loading plugins directly in memory for Mach-O plugins using new APIs in 10.3 and higher. We now suggest that all universal binaries be built as bundles instead of dynamic libraries.

This does not mean that the plugins will become folder bundles, but rather the Mach-O type will be Bundle (MH_BUNDLE from Mach-O/ Loader.h).

In Xcode, this setting is called "Mach-O Type". Changing this setting from "Dynamic Library" to "Bundle" will work properly in 2006r4 and later, and in future versions of REALbasic, these plugins will be loaded directly in memory and not written out to disk.

This is not a requirement, and old plugins will continue to function normally. This should only be done to the Universal Binary, however, as 2006r3 and prior did not know how to load up MH_BUNDLE plugins. If you're shipping a separate PowerPC Mach-O library, continue using the Dynamic Library type for backwards compatibility.


Hmm, do I understand correctly that the plugin rbx format for UB is deprecated then,

No, we are asking you to put a MH_BUNDLE Mach-O file inside of the RBX folder instead of a MH_DYNAMIC Mach-O file.

or should we somehow stash the bundle in the rbx volume and RB will load directly the bundle from the rbx volume without copying to the disk?

As I stated above, we are not talking about an actual folder bundle, but a specific style of Mach-O file. The only thing that would change is either your makefile or your Xcode project, not anything else.

It's a pretty good gain for a simple recompile, IMHO.

HTH,
Jon


--
Jonathan Johnson
jonj at realsoftware dot com
REAL Software, Inc.


_______________________________________________
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>


<Prev in Thread] Current Thread [Next in Thread>