articles icon indicating copy to clipboard operation
articles copied to clipboard

IBDesignable does not work with NSButton subclasses

Open weevilgenius opened this issue 3 years ago • 0 comments

A note regarding your IBInspectable/IBDesignable article:

On MacOS, adding @IBDesignable/IB_DESIGNABLE to a NSButton subclass does not work. It appears that you need to stick to direct NSView subclasses, or at least avoid subclassing cell-based controls.

Some references: https://stackoverflow.com/questions/27452978/does-interface-builders-new-ibdesignable-attribute-work-with-nsbutton-and-other https://stackoverflow.com/questions/27448062/need-help-getting-ibdesignable-working https://developer.apple.com/forums/thread/73190

weevilgenius avatar Feb 09 '22 18:02 weevilgenius