Re: [MacRuby-devel] obj.method(m) often gives a TypeError

2011-01-05 Thread Laurent Sansonetti
Hi Tim, Try loading the Foundation framework first. framework 'Foundation' Laurent On Jan 5, 2011, at 12:49 AM, Tim Rand wrote: > I noticed that obj.method(m) is often giving an error. The error given on > [].methods looks like: > > Tim:~/Desktop> macirb > >> def err(obj) > >> obj.

Re: [MacRuby-devel] Static Typing

2011-01-05 Thread Henry Maddocks
On 6/01/2011, at 5:31 PM, Rich Morin wrote: >> No. > > Gotta love categorical answers like this one. They > always sound so definitive and are all too frequently > shown to be incorrect. > > There's some really interesting work being done in > this area, so a better answer might be "not soon":

Re: [MacRuby-devel] Macruby support in Xcode 4?

2011-01-05 Thread Arron Mabrey
Thanks Matt But just to be clear is support dependent on the Xcode team or is it just a mater of the macruby team updating macruby once Xcode has officially been released. If your not sure or can not speak to the matter because of NDA thats fine, I'm just curious in who's hands my future lies. :-

Re: [MacRuby-devel] Static Typing

2011-01-05 Thread denny trebbin
mirah is a project to transform the beauty of ruby to java but with respecting the rules of java. so mirah forces you to use static typing.god i hope nobody tries to implement static typing in ruby. dynamic typing is so much more freedom and thanks to cucumber a breeze :)sorry but i hope this "n

Re: [MacRuby-devel] Static Typing

2011-01-05 Thread Rich Morin
> No. Gotta love categorical answers like this one. They always sound so definitive and are all too frequently shown to be incorrect. There's some really interesting work being done in this area, so a better answer might be "not soon": The Mirah Programming Language http://www.mirah.org/

Re: [MacRuby-devel] Static Typing

2011-01-05 Thread Henry Maddocks
On 6/01/2011, at 2:34 PM, Brad Hutchins wrote: > Will MacRuby eventually allow for optional Static Typing like in Objective-C? No. ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/mac

[MacRuby-devel] Static Typing

2011-01-05 Thread Brad Hutchins
Will MacRuby eventually allow for optional Static Typing like in Objective-C? ___ MacRuby-devel mailing list MacRuby-devel@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Re: [MacRuby-devel] Using an SQLite wrapper with macruby

2011-01-05 Thread Matt Aimonetti
I also documented the process there: http://ofps.oreilly.com/titles/9781449380373/ch03.html#_using_objective_c_or_c_code - Matt Sent from my iPhone On Jan 5, 2011, at 21:31, Laurent Sansonetti wrote: > Hi Ruben, > > MacRuby cannot call vararg functions without proper BridgeSupport metadata,

Re: [MacRuby-devel] Using an SQLite wrapper with macruby

2011-01-05 Thread Laurent Sansonetti
Hi Ruben, MacRuby cannot call vararg functions without proper BridgeSupport metadata, because there is no way it can determine at runtime if a function is variadic or not (because the call site must be compiled differently). You may need to generate a BridgeSupport file for the wrapper you use.

Re: [MacRuby-devel] Macruby support in Xcode 4?

2011-01-05 Thread Matt Aimonetti
Xcode 4 beta is under NDA and can't be addressed here. However, the beta doesn't support MacRuby and you should really stay on version 3 for now. - Matt On Wed, Jan 5, 2011 at 7:46 PM, Arron Mabrey wrote: > Hello, > > Is anyone successfully using Macruby in Xcode 4? > > I have seen on this list

[MacRuby-devel] Macruby support in Xcode 4?

2011-01-05 Thread Arron Mabrey
Hello, Is anyone successfully using Macruby in Xcode 4? I have seen on this list that there seem to be problems with Macruby and IB in Xcode 4. I'm wondering if that is still the case? Thanks, Arron ___ MacRuby-devel mailing list MacRuby-devel@lists.

[MacRuby-devel] Using an SQLite wrapper with macruby

2011-01-05 Thread Ruben Fonseca
Hi all. I'm trying to build a MacRuby 0.8 app with XCode. I want to interact with an exisitng Sqlite3 database. Since I don't want to package or mess with any Rubygem, I decided to look into existing Objective-C Sqlite wrappers. I've tried PLDatabase and fmdb, and failed with both. The code compi

Re: [MacRuby-devel] CoreAudio frameworks

2011-01-05 Thread kyossi
Hi, > However, I do not see any struct definitions in the generated bridgesupport > file. I found past discussions about C-struct and .bridgesupport. hope this help. [MacRuby-devel] How to use custom C struct's? http://www.mail-archive.com/macruby-devel@lists.macosforge.org/msg01492.html 2011

[MacRuby-devel] MacRuby class templates for Xcode 3

2011-01-05 Thread Takao Kouji
Hi, I created MacRuby class templates for Xcode 3 on Mac OS X 10.6. An attached patch contains below. * misc/xcode-templates/File\ Templates/MacRuby/ * TemplateChooser.plist * Ruby NSDocument subclass.pbfiletemplate * Ruby class.pbfiletemplate * Ruby NSView subclass.pbfiletempla

[MacRuby-devel] obj.method(m) often gives a TypeError

2011-01-05 Thread Tim Rand
I noticed that obj.method(m) is often giving an error. The error given on [].methods looks like: Tim:~/Desktop> macirb >> def err(obj) >> obj.methods(1,1).each do |m| ?> begin ?> obj.method(m) >> rescue => e >> p e >> end >> end >> end => nil >> err([]) # # # # # # # #