objective c - NSControlls embedded in NSView do not show tooltips -


i have multiple nstextfields , other controls embedded in custom views:

custom view - image view - custom view -- text field -- text field . . . - custom view -- text field -- text field . . . 

nstextfields have assigned tooltips. these tooltips not being displayed, mouse events intercept nsview. there way how pass events through nsview or other way how make ntextfields' tooltips displayed?

you doing several things prevents tooltips, can't without code. here worst case way fix if standard controls buried deep inside views possibly handing or eating default tooltips

in custom view

[textfield addtooltiprect:textfield.frame owner:self userdata:null]; 

and implement

-(nsstring *)view:(nsview *)view stringfortooltip:(nstooltiptag)tag point:(nspoint)point userdata:(void *)data {     return textfield.tooltip; } 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -