Re: [MacRuby-devel] Garbage Collector in MacRuby

2010-04-10 Thread Daniel Lopes
Thanks to answer Laurent. On Sat, Apr 10, 2010 at 9:47 PM, Laurent Sansonetti wrote: > Hi Daniel, > > MacRuby uses the Objective-C garbage collector, and also runs the > Objective-C runtime in GC mode. It basically means that you can use Cocoa > objects without the need to retain/release them, an

Re: [MacRuby-devel] Simple Example Fails

2010-04-10 Thread Robert Love
On Apr 10, 2010, at 8:17 PM, Thibault Martin-Lagardette wrote: > Hi, > > What version are you using? owl:~ rlove$ macruby --version MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64] I had a nightly installed last night but then the HotCoca demos wouldn't run so I went and fetch

Re: [MacRuby-devel] Simple Example Fails

2010-04-10 Thread Thibault Martin-Lagardette
Hi, What version are you using? Since we rewrote the bridge between hash and dictionaries, it is possible that thing have changed since then. However, with the latest trunk / nightlies, it should work. Here is what I get: >> h = {} => {} >> h.class => Hash >> h.setObject 'foo', forKey:42 => {42

[MacRuby-devel] Simple Example Fails

2010-04-10 Thread Robert Love
I'm trying to learn Macruby and am using Apple's page as a guide: http://developer.apple.com/mac/articles/scriptingautomation/cocoaappswithmacruby.html I'm using macirb to follow the example and getting complete different answers. Is the web page wrong? Is Macruby wrong? Am I doing somethin

Re: [MacRuby-devel] Garbage Collector in MacRuby

2010-04-10 Thread Laurent Sansonetti
Hi Daniel, MacRuby uses the Objective-C garbage collector, and also runs the Objective-C runtime in GC mode. It basically means that you can use Cocoa objects without the need to retain/release them, and they will be automatically collected at runtime once there is no reference to them anymore.

Re: [MacRuby-devel] political rumination

2010-04-10 Thread steve ross
On Apr 10, 2010, at 1:20 AM, Laurent Sansonetti wrote: > > Guys, this isn't the right place to discuss this, I'm afraid. I recommend > using an official channel such as the Apple Developer Relations. > > Thanks :-) > > Laurent I understand and respect your perspective, but when a developer mak

[MacRuby-devel] Garbage Collector in MacRuby

2010-04-10 Thread Daniel Lopes
Hello, I would like to know more about the garbage collector. In Obj-c even when we have GC enabled we should set nil to the vars (which sometimes is also useful in pure ruby). Correct me if I'm wrong but in MacRuby we can't use GDB, right? We still able to use profile tools? I should set all vars

Re: [MacRuby-devel] are framework extern variables visible in Mac Ruby?

2010-04-10 Thread russell muetzelfeldt
> Hi Russell, > > Sorry for the late response. no worries... :) > OpenDirectory.framework ships with BridgeSupport annotations, so doing > "framework 'OpenDirectory'" should merge all symbols into MacRuby. If some > are missing, it's likely a bug in the BridgeSupport generator, that should be

Re: [MacRuby-devel] political rumination

2010-04-10 Thread Rich Morin
At 1:20 AM -0700 4/10/10, Laurent Sansonetti wrote: > Guys, this isn't the right place to discuss this, I'm afraid. I > recommend using an official channel such as the Apple Developer > Relations. > > Thanks :-) Not surprisingly, I disagree. The "official channel" does not offer a forum in which

Re: [MacRuby-devel] political rumination

2010-04-10 Thread Laurent Sansonetti
Guys, this isn't the right place to discuss this, I'm afraid. I recommend using an official channel such as the Apple Developer Relations. Thanks :-) Laurent On Apr 9, 2010, at 11:16 PM, steve ross wrote: > I don't know whether anyone will provide a rationale for the contract > language, but