Re: [MacRuby-devel] Accessing memory address in MacRuby

2009-12-04 Thread Laurent Sansonetti
Hi Yehuda, C pointers are mapped to the Pointer class. You can create Pointer objects by yourself, and if you override an Objective-C method with a C pointer argument, MacRuby will hand you an instance of Pointer. You code could be rewritten in MacRuby as: retValuePtr = Pointer.new(:int)

[MacRuby-devel] Accessing memory address in MacRuby

2009-12-04 Thread Yehuda Katz
I'm currently working with an API that sends me a memory address for an int and expects me to populate it with a value: It essentially looks like this: int retValue = 1; [historyController.repository outputForArguments:[NSArray arrayWithObjects:@"update-ref", @"-mUpdate from GitX", [ref ref], [dr