My app has a preferences window with a toolbar. Its preferences tab is a separate NSView object. When I put standard buttons, boxes, etc. in each view, switching between tabs work wonderfully, but when I add custom boxes or views, the custom objects become invisible after switching between tabs.
How do I fix this?
Notice that I use method drawLayer:
in each custom object. I mark the "layer" checkbox in IB for the superview.