Skip to content

Inject NSObjects into methods called from obj-c #18

Description

@mojo2012

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.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions