[MacRuby-devel] Foundation tool OS X Service, Garbage Collection, MacRuby: why my NSRunLoop won’ t loop in acceptInputForMode:beforeDate:?

2010-08-19 Thread Caio Chassot
(repost from http://stackoverflow.com/questions/3519436 under recommendation from @lrz) I suspect this is not strictly a MacRuby issue since I can more or less cause it in pure Objective-C with GC. I observe the same NSRunLoop issue in Nu, in addition to crashing. Anyhoo: I'm writing an OS X

[MacRuby-devel] Request for feedback on new tutorial

2010-08-19 Thread Nick Ludlam
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 th

Re: [MacRuby-devel] Warnings from print operation

2010-08-19 Thread Robert Rice
Hi Laurent: Any ideas on how I should proceed to track down my printing problem? After fixing a couple of (seemingly unrelated) bugs, I'm not still getting the deprecated API messages, but I am still getting an invalid graphics context for the print operation. I think Apple probably needs to "t

Re: [MacRuby-devel] Request for feedback on new tutorial

2010-08-19 Thread Laurent Sansonetti
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_TagLibBun

Re: [MacRuby-devel] Warnings from print operation

2010-08-19 Thread Laurent Sansonetti
Hi Robert, Well, I have no idea. I can't debug your project without seeing the code :) I suspect there is an application error somewhere, since the Cocoa layer of MacRuby has been pretty stable since we released 0.6. So I would double-check the drawing code with the documentation and see if the