efine_varible but it does not work. seems it requires
rb_objc_ocval_to_rval function call to convert the objc object to ruby
object first. Any help is appreciated. Thanks
--
Best regards
Linan Wang
___
MacRuby-devel mailing list
MacRuby-devel@lists
rmRubySelector:@selector(foo)]);
> }
>
> $ gcc /tmp/t.m -o /tmp/t -fobjc-gc -framework MacRuby -framework Foundation
>
> $ /tmp/t
> 2009-07-26 22:48:29.366 t[53439:903] ->
> 2009-07-26 22:48:29.368 t[53439:903] -> hello
> 2009-07-26 22:48:29.369 t[53439:903] -> world
&g
Got it. thanks!
On Mon, Jul 27, 2009 at 7:50 PM, Laurent Sansonetti
wrote:
> Hi Linan,
> You can evaluate "self" for that.
>
> id ruby_self = [[MacRuby sharedRuntime] evaluateString:@"self"];
>
> Laurent
>
> On Jul 27, 2009, at 1:52 AM, Linan Wang wrot
Hi,
I tried couple of hours to compile MacRuby under Snow Leopard but no
luck. Maybe someone likes to share a built copy? It would be a great
favour for those application developers like myself. Thanks!
--
Best regards
Linan Wang
___
MacRuby-devel
ready done this step, but if you are getting errors that Make
> cannot be found and things, this is most likely the cause.
>
> Cheers,
>
> -Gp
>
>
>
> On 2009-08-27, at 7:02 AM, Linan Wang wrote:
>
>> Hi,
>> I tried couple of hours to compile MacRuby und
Hi,
I'm playing with the new block syntax of objc recently. I tried to
call a ruby block from an objc block-ish methods but failed. The code
snippet:
@implementation BlockTest
...
-(void)testBlock:(void^(int i))block
{
block(self.x);
}
...
@end;
MacRuby codes:
b.testBlock do |x|
puts
with
function pointers, which will be supported.
If you have any need for such a feature we can tentatively implement
it for the release.
Laurent
On Sep 15, 2009, at 4:28 PM, Linan Wang wrote:
Hi,
I'm playing with the new block syntax of objc recently. I tried to
call a ruby bloc
Hi,
MacRuby 0.5 is currently for Snow Leopard only, and it depends upon
specific version of llvm. I'd suggest you to download the daily built
from http://macruby.icoretech.org/.
On 26 Sep 2009, at 23:36, sergei homjakov wrote:
Hello! I have problem with build macruby 0.5 (command rake)
$
Hi,
I read a little bit source codes and found out that Symbol is
implemented on top of NSString. My question is if it's a better choice
to use SEL as the basis when objc is available? objc runtime takes
care of the registration and management. I guess using NSString class
is a decision wi
far to be perfect but so far it works okay.
Laurent
On Oct 5, 2009, at 4:55 PM, Linan Wang wrote:
Hi,
I read a little bit source codes and found out that Symbol is
implemented on top of NSString. My question is if it's a better
choice to use SEL as the basis when objc is available? objc
10 matches
Mail list logo