ObjCMirror tree inspectto see all the libraries accessible at runtime
| appPool | appPool := ObjCMirror tree @ #( private var containers Bundle Application ). HIExports := (appPool at: appPool keys asArray first) @ #( 'chart8.app' Frameworks 'Highcharts.framework' Highcharts ). (HIExports collect: [:each| each name]) asLiteralNote that this evaluation leaves a global array (HIExports) with the exported objects of the library, and returns an array with the names.
(ObjCMirror hierarchyFrom: HIExports) inspect; size
ObjCMirror codeForExports: HIExports
To generate all the code evaluate the expression (with showIt)ObjCMirror codeForModule: #HighchartsThe returned string is the code of the implementation of the library wrappers! |
ObjCMirror codeForClass: #HIChart.
Exporter fileOutCategory: #Highcharts