Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No mapping for callbacks with parameters as reference #14

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments
Open

No mapping for callbacks with parameters as reference #14

GoogleCodeExporter opened this issue Mar 13, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link
Contributor

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 [email protected] on 1 Oct 2010 at 3:05

@GoogleCodeExporter
Copy link
Contributor Author

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 [email protected] on 4 Oct 2010 at 11:38

@GoogleCodeExporter
Copy link
Contributor Author

Original comment by [email protected] on 4 Oct 2010 at 11:39

  • Changed title: No mapping for callbacks with parameters as reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant