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

Inject NSObjects into methods called from obj-c #18

Open
mojo2012 opened this issue Jul 30, 2019 · 0 comments
Open

Inject NSObjects into methods called from obj-c #18

mojo2012 opened this issue Jul 30, 2019 · 0 comments
Labels

Comments

@mojo2012
Copy link
Collaborator

In kakao I register all NSObject subclasses globally. This allows me to get these instances later on when I only have a Proxy object:

@Msg(selector = "outlineView:numberOfChildrenOfItem:", signature = "l@:@@")
public int outlineViewNumberOfChildrenOfItem(Proxy outlineView, Proxy item) {
	return item == null ? root.childCount() : NSObject.<DataNode>getInstance(item.getPeer()).childCount();
}

It would be nice to move that functionality to JOCB's NSObject. We could then use it to directly inject the actual typed instance instead of the proxy.

@mojo2012 mojo2012 added the idea label Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant