-
-
Notifications
You must be signed in to change notification settings - Fork 160
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
Methods being skipped when generating wrapping #130
Comments
They're being skipped because macdriver doesn't support them yet. I think in this case it's because they are using blocks/callbacks. For every callback signature we'd need to generate a CGO re-entry wrapper and the code to set that up. There is a very simple but also special case of this for the dispatch API, using a channel to queue Go functions to be called by a generic C callback sent to the actual dispatcher. I don't know if blocks are any different from function pointer callbacks. |
I am trying to work with Objective-C methods calling Go functions. I think I have figured out this problem but I can't make my code compile due to a mysterious duplicate system error. Since it looks about done I thought would share it and see what you think.
|
I don't remember specifics but this might be related to an issue I ran into with the dispatch package. It's why the Go exported |
I also have the same question. 2023/07/11 17:05:59 skip NSToolbarItem.itemWithItemIdentifier:barButtonItem:: mapType: NSToolbarItemIdentifier
2023/07/11 17:05:59 skip NSToolbarItem.initWithItemIdentifier:: mapType: NSToolbarItemIdentifier
2023/07/11 17:05:59 skip NSToolbarItem.itemIdentifier: mapType: NSToolbarItemIdentifier
2023/07/11 17:05:59 skip NSSegmentedControl.segmentedControlWithImages:trackingMode:target:action:: mapType: NSSegmentSwitchTracking
2023/07/11 17:05:59 skip NSSegmentedControl.segmentedControlWithLabels:trackingMode:target:action:: mapType: NSSegmentSwitchTracking Is it because there is no NSSegmentSwitchTracking enum and NSToolbarItemIdentifier generated? |
Callbacks are supported in this PR and probably these methods and enums too. |
I am trying to add NSNotificationCenter to MacDriver. MacSchema was able to create a schema file successfully. When I look inside the file I do see the postNotification method and others there. For some reason I can't generate bindings for methods like postNotification. In the terminal I see these messages that tell me these methods are being skipped:
Why are these methods being skipped?
Is there a way to make the gen command not skip these methods?
The text was updated successfully, but these errors were encountered: