Re: [MacRuby-devel] re-implemention of attr_accessor and valueForKey:

2011-03-11 Thread kyossi
lot. > For the sake of it, I opened a Trac ticket with the reduced > code: https://www.macruby.org/trac/ticket/1188 > Cheers, > -- > Thibault Martin-Lagardette > > On Thursday, March 10, 2011 at 13:59, kyossi wrote: > > Hi, > > I'm plan to add some functionali

[MacRuby-devel] re-implemention of attr_accessor and valueForKey:

2011-03-10 Thread kyossi
Hi, I'm plan to add some functionality to existing attr_accessor. I've started with re-implement attr_accessor with same functionality, but when I implement it by define_method, it failed with Segmentation fault when I call valueForKey(:key). Am i doing wrong with class Base2??, The Code is #u

Re: [MacRuby-devel] objective-c runtime

2011-01-06 Thread kyossi
;-I.' runtime.h > ~/Desktop/runtime.bridgesupport $ macirb irb > load_bridge_support_file "/Users/kyossi/Desktop/runtime.bridgesupport" NameError: Method is already defined It seems like one line in runtime.bridgesupport conflict with Method class in ruby. When

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

Re: [MacRuby-devel] MacRuby equivalent to C sizeof(struct Foo)

2010-12-27 Thread kyossi
Hi, Thanks for help. OK, I've created a new ticket as below. https://www.macruby.org/trac/ticket/1080 Thanks&Regards. kyossi >Hi, >There is no way to do that for now. Could you file a ticket? I will introduce >#size on C structs classes. >NSRect.size in MacRuby would

[MacRuby-devel] MacRuby equivalent to C sizeof(struct Foo)

2010-12-24 Thread kyossi
Hi, I'm trying to write some app in MacRuby with CoreAudio framework. I've notices some framework's C-function require pointer manipulation, and for some cases, I need calculate size of C-struct, but don't know how to get sizeof(struct Foo). Is there any way to calculate size of C-struct in MacR