[MacRuby-devel] Accessing memory address in MacRuby

Yehuda Katz wycats at gmail.com
Fri Dec 4 16:16:10 PST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20091204/75cf5487/attachment.html>


More information about the MacRuby-devel mailing list