The documentation for NSPopUpButton states:
An NSPopUpButton object uses an NSPopUpButtonCell object to implement its user interface.
I derived a new class from NSPopUpButtonCell
which implements drawBorderAndBackgroundWithFrame:inView:
to achieve custom drawing. In addition, I derived a new class from NSPopUpButton
and use cellClass
to use my derived class for it. (i.e. I am not working via interface builder.)
With the advent of macOS 10.14 beta however, this routine is not called anymore, and I observe the "normal" (i.e. non-customized) drawing.
Thanks to @Marc T.'s answer, I (think I) was able to localize the problem to the fact that the cell apparently calls drawBorderAndBackgroundWithFrame:inView:
only if drawInteriorWithFrame:inView:
is implemented in the derived cell.
I could not find solid documentation on this. Is there any?