nagyistoce / rococoa

Automatically exported from code.google.com/p/rococoa
0 stars 0 forks source link

No mapping for callbacks with parameters as reference #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
A NSMenu delegate implementing 

menuHasKeyEquivalent_forEvent_target_action(NSMenu menu, NSEvent event, ID 
target, Selector action);

is not possible. There is no specific mapping in NSInvocationMapperLookup for 
the selector argument. This is mapped to NativeLong instead.

Original issue reported on code.google.com by dkocher@sudo.ch on 1 Oct 2010 at 3:05

GoogleCodeExporter commented 9 years ago
Actually the signature is 

- (BOOL)menuHasKeyEquivalent:(NSMenu *)menu forEvent:(NSEvent *)event 
target:(id *)target action:(SEL *)action

passing the selector by reference. The issue is therefore that there is no 
mapping for IDByReference and a selector by reference.

Original comment by dkocher@sudo.ch on 4 Oct 2010 at 11:38

GoogleCodeExporter commented 9 years ago

Original comment by dkocher@sudo.ch on 4 Oct 2010 at 11:39