objective c - IBOutlet on NSToolbarItem subclass causes image to disappear and interaction to be disabled -


i implementing preferences window, subclass of nstoolbaritem has iboutlet nsview (the idea being when item clicked, display view). however, when connect toolbar item instance of subclass, item's image disappears , not clickable (although text remains dark , not fade).

if disconnect iboutlet, works again (well, nothing does, since isn't bound view, idea).

connecting view nstoolbaritem sets view toolbar item's image is. useful in cases need view in toolbar (for example, itunes volume slider), not in case.

what need create nsviewcontroller view, , create ibaction shows view. should able connect ibaction toolbar item (in interface builder), , should work expected.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -