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

Methods with pointer to pointer arguments using old signature #255

Open
programmingkidx opened this issue May 9, 2024 · 0 comments
Open

Comments

@programmingkidx
Copy link
Contributor

A commit was made to better support pointer to pointer arguments. This is commit 6a98f82. Running 'go generate ./macos/appkit' would update all the methods in a selected folder to use the new function signature.

Example:
// Before running 'go generate ./macos/appkit'
func (n_ Nib) InstantiateWithOwnerTopLevelObjects(owner objc.IObject, topLevelObjects []objc.IObject) bool {

// After running 'go generate ./macos/appkit'
func (n_ Nib) InstantiateWithOwnerTopLevelObjects(owner objc.IObject, topLevelObjects unsafe.Pointer) bool {

The '[]objc.IObject' type is replaced with an 'unsafe.Pointer' type.

I ask that the Macdriver repo have all its supported frameworks updated by running 'go generate ./macos/framework-name-here'

Thank you.

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

No branches or pull requests

1 participant