[MacRuby-devel] Request for feedback on new tutorial

Nick Ludlam nick at recoil.org
Fri Aug 20 03:09:01 PDT 2010


Oh you're right, that hadn't even occurred to me! I'm still thinking in non-GC terms with my Obj-C code because it's all influenced by iOS development.

I'll fix up the wrapper source and tutorial accordingly, and post back with the URLs for the website and example git project.

Nick


On 19 Aug 2010, at 21:42, Laurent Sansonetti wrote:

> Hi Nick,
> 
> It looks pretty good to me!
> 
> I just have a question regarding the Objective-C wrapper. Since the goal is to use it through MacRuby, why not compiling the project with -fobjc-gc-only and simplify the code?
> @interface TagLib : NSObject {
>     NSDictionary *tags;
> }
> 
> @end
> void Init_TagLibBundle(void) { }
> 
> @implementation TagLib
> 
> @synthesize tags;
> 
> - (id)init {
>     if (self = [super init]) {
>         tags = [NSDictionary dictionary];
>     }
>     return self;
> }
> 
> @end
> I'm not sure if the audience of this tutorial will be comfortable with manual memory management :)
> 
> If you can post the source code of this tutorial I will commit it on the macruby-website repository.
> 
> Laurent
> 
> On Aug 19, 2010, at 10:12 AM, Nick Ludlam wrote:
> 
>> I've written up a first draft of a tutorial on taking C/C++, wrapping the code in a simple Obj-C class, then exporting this as a bundle which can be loaded by MacRuby. In this case, it's about wrapping the open-source TagLib library in order to extract ID3 tags from mp3 files.
>> 
>> If people have the time, I'd really appreciate any feedback on things like length, clarity, and accuracy of describing steps in XCode etc etc. 
>> 
>> http://recoil.org/~nick/macruby/documentation/realworld-dynamic-bundles.html
>> 
>> 
>> Thanks,
>> Nick
>> 
>> _______________________________________________
>> MacRuby-devel mailing list
>> MacRuby-devel at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
> 
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100820/b3d42d7b/attachment-0001.html>


More information about the MacRuby-devel mailing list