Open LunaTheFoxgirl opened 8 months ago
https://github.com/MrcSnm/D-objective-c/blob/main/source/objc/runtime.d#L72
They are actually implemented. NSObject has those functions and as you can see, all of them are extending this class.
MTLRenderPassDescriptor does not, for example. https://github.com/MrcSnm/D-Metal-Binding/blob/main/source/metal/metal.d#L527-L530
or MTLDrawable https://github.com/MrcSnm/D-Metal-Binding/blob/main/source/metal/metal.d#L973-L978
MTLRenderPassDescriptor does not, for example. https://github.com/MrcSnm/D-Metal-Binding/blob/main/source/metal/metal.d#L527-L530
or MTLDrawable https://github.com/MrcSnm/D-Metal-Binding/blob/main/source/metal/metal.d#L973-L978
On the interface, they do not actually contain the methods of the objective-c NSObject. But you can always cast your object to this class since everything extends from NSObject. But yeah on the descriptors that should be fixed
A large part of the API has no way to release references to the classes created, this in my testing can result in some memory leaks. A lower class than Object should probably be added, which provides just an interface to
retain
,release
,autorelease
andretainCount