JuliaInterop / ObjectiveC.jl

Objective-C embedded in Julia
Other
39 stars 10 forks source link

Parametric types #19

Open jkrumbiegel opened 1 year ago

jkrumbiegel commented 1 year ago

In my ScriptingBridge project, some properties are SBElementArrays where the element type is known. I don't think there's a way right now to map that, correct? At least variations of @objcwrapper MyArray{T<:Integer} <: NSArray don't work. Would be nice to have something like that, because currently I have to manually reinterpret the id{NSObject}s to what I know they really are.

maleadt commented 1 year ago

Yeah, that's not supported now. The NSArray wrapper also suffers from this, hence it returning an id too.