[MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Yasu Imao
Hi, Thank you for the hard work on the project. I installed 0.8 release and found one serious bug (I think). All the bindings to ObjectControllers are dead. I checked nightly builds one by one and found that all the bindings work fine until 12/6 nightly and they are dead after 12/7, includin

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread benjamin Almeida
Hi, I think I have the same problem: $ macirb irb(main):001:0> require 'bio' => true irb(main):002:0> Bio::RestrictionEnzyme::SingleStrand.superclass *=> #>* irb(main):006:0> >> Bio::RestrictionEnzyme::SingleStrand.class_eval('superclass') *SyntaxError: compile error (irb):6: syntax error, unexpe

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Yasu Imao
Hi again, A little update. I'm not sure if I was clear enough. What I meant was NSObjectController bindings. Anyway, I just created a very simple app (one text box and one button) to check the object controller binding functionality. I added an NSObjectController instance to the xib file an

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Eloy Duran
Hi Benjamin, The problem that you show is because your input at line 6 starts with ‘>>’. For example: $ macirb irb(main):001:0> >> foo SyntaxError: compile error (irb):1: syntax error, unexpected tRSHFT In case this masked an actual problem with IRB and/or Ruby’s bindings, which is NOT the same

[MacRuby-devel] [ANN] The Flying Camera (game)

2010-12-14 Thread Thomas R. Koll
Hai, I hope it's okay to show off with our little game on the mailinglist. Over the weekend we participated in a contest at the Super Gamedev Weekend at the metalab[1] in Vienna. Against the hard competition of games developed in Objectiv-C (for the iPad), pygame, HTML, Flash and even C++ (the onl

[MacRuby-devel] Error allocating an NSMenu

2010-12-14 Thread Gabriel Gilder
Hi, Just installed MacRuby 0.8 and discovered that my project is generating an error on a line of code that worked previously... it's in a handler that creates a contextual menu, but I can recreate the error just by running this line: theMenu = NSMenu.alloc.initWithTitle("Contextual Menu").aut

Re: [MacRuby-devel] Error allocating an NSMenu

2010-12-14 Thread Laurent Sansonetti
Hi Gabriel, You can safely remove all the retain, release and autorelease messages from your code, as they are not needed in MacRuby (because it uses garbage collection). Laurent On Dec 14, 2010, at 11:51 AM, Gabriel Gilder wrote: > Hi, > > Just installed MacRuby 0.8 and discovered that my p

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Laurent Sansonetti
Hi Yasu, That's unfortunate. I checked that our bindings tests still passed before releasing, but maybe the spec suite is not complete. Could you file a ticket and attach your simple app there? I will have a look. As you already found that it works in a previous nightly, it should be fairly ea

Re: [MacRuby-devel] Error allocating an NSMenu

2010-12-14 Thread Gabriel Gilder
Great, thanks for clearing that up! -Gabriel On Tue, Dec 14, 2010 at 12:20 PM, Laurent Sansonetti wrote: > Hi Gabriel, > > You can safely remove all the retain, release and autorelease messages from > your code, as they are not needed in MacRuby (because it uses garbage > collection). > > Laure

Re: [MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-14 Thread Laurent Sansonetti
Hi Mark, I'm afraid the low level BSD socket structures are not yet covered by BridgeSupport. We could eventually add them to the libSystem BridgeSupport file, however I wonder if there isn't an easier way to use Bonjour from MacRuby. Laurent On Dec 12, 2010, at 8:09 PM, Mark Rada wrote: > H

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Yasu Imao
Hi Laurent, OK. I will file a ticket, but as I wrote, the binding in the simple app DOES work without any problem (I don't know why, though). Do you want to see it? Best, Yasu On 2010/12/15, at 5:24, Laurent Sansonetti wrote: > Hi Yasu, > > That's unfortunate. I checked that our bindings t

[MacRuby-devel] Dispatch gem

2010-12-14 Thread Arthur Gunn
Hi! I've just made a gem for the dispatch module recently removed from the main macruby codebase. I believe it's all in working order, you should just be able to: $ sudo macgem i dispatch $ macirb > require 'lib/dispatch' => true > (1..4).p_map {|i| i**2}

Re: [MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-14 Thread Mark Rada
Hi Laurent, In my case I can ignore a lot of what the low level stuff since Control Tower handles it for me and I only to be able to advertise using Bonjour. Thanks for the update, Mark On 2010-12-14, at 6:13 PM, Laurent Sansonetti wrote: > Hi Mark, > > I'm afraid the low level BSD s

Re: [MacRuby-devel] [ANN] The Flying Camera (game)

2010-12-14 Thread Laurent Sansonetti
Hi Thomas, Very well done :) I gave the game a try and it works fine. (I noticed that the Xcode project has a reference to a README file which doesn't exist in the github repository. You may want to fix that.) Congratulations for grabbing the prizes! Would you mind if we bundle your game as a

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Laurent Sansonetti
Oh sorry, I misunderstood you. It would be nice to be able to reproduce your problem, otherwise it will be hard to fix. I will examine the recent commits and do some detective work. Laurent On Dec 14, 2010, at 3:33 PM, Yasu Imao wrote: > Hi Laurent, > > OK. I will file a ticket, but as I wro

Re: [MacRuby-devel] ObjectController binding is dead

2010-12-14 Thread Yasu Imao
I filed a ticket and attached a simple app. I haven't fully explored bindings on my app (I'm still learning), so my findings are limited, I guess. Best, Yasu On 2010/12/15, at 10:12, Laurent Sansonetti wrote: > Oh sorry, I misunderstood you. > > It would be nice to be able to reproduce your

[MacRuby-devel] Tracking progress against RubySpec over time

2010-12-14 Thread Erik Michaels-Ober
Does MacRuby maintain a chart of progress running RubySpecs, like the one that GemStone generates for MagLev[1]? I know I could just run the specs myself, but I'd love to be able to see, at a glance, what percentage of specs are passing for MacRuby and how progress against RubySpec is accelerating

[MacRuby-devel] Updated Roadmap

2010-12-14 Thread Erik Michaels-Ober
It looks like the MacRuby Roadmap[1] hasn't been updated since before 0.5 was released. I was surprised (albeit pleasantly) to see the release of 0.8 yesterday, since the due date in Trac[2] was set for February 19, 2011. However, there doesn't appear to be a due date set for any future releases[3

Re: [MacRuby-devel] Trying to add Bonjour to a ControlTower app

2010-12-14 Thread Joshua Ballanco
Hi Mark, Instead of messing with sockets on your own, it's fairly easy to advertise and search for Bonjour services using the NSNetService and NSNetServiceBrowser APIs. If you bug me about it tomorrow, I could probably throw together a quick demo of how that would work (might even make a good a