[MacRuby-devel] Exposing c structs and functions
Eloy Duran
eloy.de.enige at gmail.com
Fri Dec 19 08:04:57 PST 2008
Your best bet is to take a look at the bridgesupport files for most
system frameworks
and learn from those. They are found inside Resources/BridgeSupport.
Nonetheless, it would indeed be very nice if a more elaborate guide
could be written.
Eloy
On Dec 19, 2008, at 4:45 PM, Jim Getzen wrote:
> John, thanks for the ideas.
>
> Currently, I am using a simple Obj-C class with methods instead of a
> struct and functions. That works OK, but it is not the best
> solution, especially in those cases where the framework would be
> used by Obj-C code instead of MacRuby code and where speed is a
> concern. A struct/function approach is really ideal.
>
> I am afraid I don't understand the tutorial example concerning
> BridgeSupport files and how that might apply to structs and
> functions. As you said, the documentation on the BridgeSupport web
> page is limited. Before I go down that road, I'd love to know how
> involved the process is, see an example of how it works, and so on.
>
> Perhaps Laurent could shed some light?
>
> Jim
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
More information about the MacRuby-devel
mailing list