On Aug 5, 2012, at 4:56 PM, Michael Crawford <michaelacrawf...@me.com> wrote:

> Is there a way to display a tool-tip in response to an event?  Currently I'm 
> waiting for the default timeout but if the user clicks on a particular cell 
> (yes this is an NSTableView), I'd like to display the tool-tip immediately.  
> The contents of the NSTableColumn in question are not editable so I don't 
> need the mouse click for anything else.

IIRC, no —  I don't think there is public API to make tooltips come up on 
demand.

I had to do some unorthodox stuff to implement tooltips in the Mac version of 
Chrome a few years ago, which I did by copying WebKit's implementation, but 
this uses some internal AppKit methods. I wouldn't recommend you use them. (If 
you're really determined you could look it up in the WebKit sources, but I 
don't remember where the tooltip code is.)

—Jens
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to