[MacRuby-devel] Request for feedback on new tutorial
Laurent Sansonetti
lsansonetti at apple.com
Thu Aug 19 13:42:39 PDT 2010
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100819/999eab06/attachment-0001.html>
More information about the MacRuby-devel
mailing list