Closed GnohiSiaM closed 5 years ago
Hey @GnohiSiaM, could you please try with replacing NSColor
in the extension with Self
? The problem here is that NSColor
is not final, someone could create a subclass, thus returning NSColor
is not dynamic enough 😄
@sunshinejr I have tried it, but it still not work
'Self' is only available in a protocol or as the result of a method in a class
Oh, that's an unfortunate limitation... I'm gonna think about the solution and let you know @GnohiSiaM.
As an update, I was trying multiple things to make a workaround for this one, but unfortunately nothing stood out as a perfect solution. I would use some help if anyone would like to play with resolving the non-final case scenario.
Yeah, need a solution for non-final classes. I'm dealing with objc code generated by a thirdparty tool. If I can't find a solution then I will have to go back to version 3.
Bump.
Hi there! I tried to extend
NSColor
:and got these errors:
Is it possible to add support for non-final class?