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)
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