Re: How to display tool-tip on demand
Re: How to display tool-tip on demand
- Subject: Re: How to display tool-tip on demand
- From: "Gary L. Wade" <email@hidden>
- Date: Sun, 05 Aug 2012 17:58:30 -0700
No, I couldn't find a way either, so I just made my own window that mirrored the look and feel of a tooltip window. I also needed it to follow a slider's thumb, which would have been problematic even in the default implementation. Of course, now we have NSPopover windows that could fit your need.
--
Gary L. Wade (Sent from my iPhone)
http://www.garywade.com/
On Aug 5, 2012, at 4:56 PM, Michael Crawford <email@hidden> 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.
>
> I tried changing the default timeout using the following code but It does not work in that I don't observe a change in the tool-tip delay.
>
> [[NSUserDefaults standardUserDefaults] setObject: [NSNumber numberWithInt: 50]
> forKey: @"NSInitialToolTipDelay"];
>
> I really prefer to click to overriding the delay anyhow so I'm not really interested in troubleshooting or digging in the failure of changing the default setting.
>
> -Michael
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> 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:
>
> This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden