I'm creating multiple different UI subclasses which can be created using JSContext
, and I'd like them all to inherit a certain set of methods.
The classes vary from NSButton
to NSTextView
. It would be nice to have a single subclass act as NSView
parent class, but I can't figure out if this is possible — or how to begin searching.
For example:
@interface CustomButtonClass : NSButton
I'm looking for a way to make NSButton
inherit from a custom NSView
subclass.
Is there a way to go around this, or do I need to create multiple intermediate classes?