atom feed4 messages in net.java.dev.rococoa.userssignificant callback bug (with solution)
FromSent OnAttachments
Adrian RossJun 15, 2008 12:22 am 
Duncan McGregorJun 15, 2008 1:42 am 
Adrian RossJun 15, 2008 2:14 am 
Adrian RossJun 15, 2008 2:16 am 
Subject:significant callback bug (with solution)
From:Adrian Ross (adr@flyingmac.com)
Date:Jun 15, 2008 12:22:36 am
List:net.java.dev.rococoa.users

Was wondering why the wrong callback was being invoked - turns out you need to modify ProxyForJava.h like this:

@interface ProxyForJava : NSObject { void (*methodInvokedCallback)(const char*, id); char* (*methodSignatureCallback)(const char*); } ...

Note the new braces - they make the the variables members of the class, which is what we want. Otherwise they're globals or some such c-ish thing, which makes the results kind of hilarious (in retrospect).

Adrian