Re: about help
Re: about help
- Subject: Re: about help
- From: David Remahl <email@hidden>
- Date: Sun, 10 Feb 2002 21:43:34 +0100
>
I know that one can use IB to put these nice tool tip informations on
>
buttons etc.
>
But lets assume I have a button, called "Fourier Transform". The tool
>
tip will not be big enough to explain, what a Fourier transformation is.
>
For this the user should look into the Help Menu.
Yup. That is all according to apple guidelines.
>
Now: is there a direct way from my button to the section in my help,
>
which explains about Fourier?
>
E.g. press a "Help" key, the cursor turns into a "?", hit the button,
>
and the correct help page turns up?
Nope :-(, there is no direct way to do this.
>
Does the AppKit provide this functionallity? If yes, where? If no: is
>
there a prefered way to implement this?
You would probably have to resort to subclassing...Then you would have a
mode in the application which you can check from a subclass, maybe [[NSApp
delegate] isInHelpMode] which would return true if the user is currently in
help mode (?-cursor). In the mouseDown: method of the subclass you would
check what mode is the current and pass on to super if not help. If in help
mode, you would instead use the API in Carbon.framework's subframework
Help.framework. There are functions for opening a certain chapter in your
help book, or for searching your book for a certain term ("Fourier
Transform"). If you would like to be able to use the same subclass for all
buttons, then maybe you could ask help to start a search for the string in
the tooltip...That would enable you to construct a HelpEnabledButton
control, which would work out-of-the-box as soon as you set your tooltip.
That is at least how I would do it, but I can't say I ever implemented it,
nor that I thought it over a great deal ;)
/ David
>
Gerriet.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >about help (From: "Gerriet M. Denkmann" <email@hidden>) |