FROM : Kevin Grant
DATE : Mon May 12 06:16:14 2008
I don't think there is an official way to do it.
From the document:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/AdvancedTechniques/chapter_9_section_6.html
It appears Cocoa supports only the basic form:
"For Carbon controls you can specify both a simple tool tip and
an extended help description. You use the Help field to specify the
basic tooltip that appears when the user hovers the mouse over a view
and you use the Extended Help field to provide an extended version of
the tooltip that appears when the user presses the Command key. Cocoa
controls support only the basic tool tip information."
Kevin G.
> Hi Guys,
>
> I've been instructed to implement tool tips for an app such that a
> longer, more descriptive tool tip is displayed when the command key
> is held down. Allegedly there was a way to do this in Carbon that
> was part of the Help Manager API, but is there a Cocoa alternative?
> I've had a look at the NSToolTipOwner protocol but I've been unable
> to find anything that indicates it would solve my problem. I was
> thinking the best way to do it might be to bind all my tool tips
> application-wide to an object that overrides -valueForKey: which
> checks the command key status, and returns the appropriate tool tip.
> Is there a better solution?
>
> Thanks!
> Loukas
DATE : Mon May 12 06:16:14 2008
I don't think there is an official way to do it.
From the document:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/AdvancedTechniques/chapter_9_section_6.html
It appears Cocoa supports only the basic form:
"For Carbon controls you can specify both a simple tool tip and
an extended help description. You use the Help field to specify the
basic tooltip that appears when the user hovers the mouse over a view
and you use the Extended Help field to provide an extended version of
the tooltip that appears when the user presses the Command key. Cocoa
controls support only the basic tool tip information."
Kevin G.
> Hi Guys,
>
> I've been instructed to implement tool tips for an app such that a
> longer, more descriptive tool tip is displayed when the command key
> is held down. Allegedly there was a way to do this in Carbon that
> was part of the Help Manager API, but is there a Cocoa alternative?
> I've had a look at the NSToolTipOwner protocol but I've been unable
> to find anything that indicates it would solve my problem. I was
> thinking the best way to do it might be to bind all my tool tips
> application-wide to an object that overrides -valueForKey: which
> checks the command key status, and returns the appropriate tool tip.
> Is there a better solution?
>
> Thanks!
> Loukas
| Related mails | Author | Date |
|---|---|---|
| Loukas Kalenderidi… | May 12, 03:44 | |
| Kevin Grant | May 12, 06:16 |






Cocoa mail archive

