2 * Copyright 2007, 2008 Duncan McGregor
4 * This file is part of Rococoa, a library to allow Java to talk to Cocoa.
6 * Rococoa is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * Rococoa is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with Rococoa. If not, see <http://www.gnu.org/licenses/>.
20 #import <Cocoa/Cocoa.h>
22 id
proxyForJavaObject(void* methodInvokedCallback
, void* methodSignatureCallback
);
24 @interface ProxyForJava
: NSObject
{
26 void (*methodInvokedCallback
)(const char*, id
);
27 char* (*methodSignatureCallback
)(const char*);
31 - (id
) initWithMethodInvokedCallback
: (void*) theMethodInvokedCallback methodSignatureCallback
: (void*) theMethodSignatureCallback
;
33 - (void)forwardInvocation
:(NSInvocation
*) anInvocation
;
35 - (NSMethodSignature
*)methodSignatureForSelector
:(SEL
)aSelector
;