Open mojo2012 opened 5 years ago
In kakao I register all NSObject subclasses globally. This allows me to get these instances later on when I only have a Proxy object:
NSObject
Proxy
@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.
In kakao I register all
NSObject
subclasses globally. This allows me to get these instances later on when I only have aProxy
object: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.