Dynamic Tooltips

2008-07-10 Thread jeffs87
Hi, I have a slider and while dragging I want to have a tooltip show the current value of the slider and have the tooltip follow the mouse position. GarageBand does this for volume and pan. I've looked around and it doesn't look like you can do it in Cocoa. In Carbon you can do it with

Re: Dynamic Tooltips

2008-07-10 Thread Todd Ransom
Jeff, You can do this but you will need to implement the tooltips yourself using tracking rects (or maybe you can just do it in mouseDown:, I have only done it for cell-based custom views, not sliders) and a custom window class for the tooltips. A tooltip window implementation to start

Re: Dynamic Tooltips

2008-07-10 Thread Graham Cox
Hi Jeff, I do something like this in numerous places in DrawKit to show the instantaneous positions, angles and sizes of objects, guides, etc. I use a custom window that emulates the tooltip appearance which gives me a lot of additional flexibility, but it's a pretty simple class. Using