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], [dropCommit realSha], NULL] retValue:&retValue];
if (retValue) return NO;

I am writing code that implements outputForArguments:retValue:, but it seems that MacRuby hands me an opaque primitive that I can't use. When I try to do anything with it, I get EXC_BAD_ACCESS.

Any ideas?

Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325