[MacRuby-devel] Objective-C SDL bindings accessible from Ruby?

Timothy McDowell tmcdowell at gmail.com
Wed Sep 30 14:10:07 PDT 2009


I was thinking of just using the C (C++? I'm not sure) prebuilt SDL
frameworks I have on this computer... I know the Objective-C side can handle
all of it fine, but can the ruby?

On Wed, Sep 30, 2009 at 2:18 PM, Laurent Sansonetti
<lsansonetti at apple.com>wrote:

> On Sep 30, 2009, at 11:07 AM, Timothy McDowell wrote:
>
>  I'm fairly new to objective-c, xcode, and the whole compiling/linking
>> process altogether. But I was wondering if I link my SDL library to my xcode
>> macruby project, can I access the SDL from both the Obj-C side and Ruby?
>>
>
> Yep :) Pure Objective-C APIs should be callable from MacRuby automagically.
>
> A side note, if your Objective-C SDL bindings framework exposes C APIs or
> C-based symbols, you may want to generate a BridgeSupport file for it,
> because MacRuby has no way to know that. The gen_bridge_metadata(1) man page
> has information.
>
> Good luck,
>
> Laurent
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>



-- 
--Brains.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20090930/dd859dd1/attachment.html>


More information about the MacRuby-devel mailing list