I am unfamiliar with the subclassing or extending Cocoa framework.
NSButton has a setToolTip
method, however NSButtonCell does not. I rather not add new IBOutlets, so how can I accomplish this by accessing NSButton's method?
I have a series of checkboxes, all with NSButtonCell outlets. I am unable to access the setToolTip method but if i were to make an NSButton outlet on the same thing, i do, seems to be where i am stuck.
/* Tooltips require you to connect the NSButton not NSButtonCell */
[myButton setToolTip:@"This does xyz"];
[myButton.controlView setToolTip:@"tool tip"];
seems to have done the trick @red_menace - is this what you meant? – Jon WeinraubNSButton
inherits fromNSView
, you need to take a sidestep withNSButtonCell
by getting itscontrolView
property in order to get the view for the tooltip. – red_menace