Re: about help
Re: about help
- Subject: Re: about help
- From: "Erik M. Buck" <email@hidden>
- Date: Sun, 10 Feb 2002 15:26:46 -0600
----- Original Message -----
From: "David Remahl" <email@hidden>
To: "Gerriet M. Denkmann" <email@hidden>; "Cocoa-dev"
<email@hidden>
Sent: Sunday, February 10, 2002 2:43 PM
Subject: Re: about help
>
> 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?
What you describe is the way help used to work in NeXTstep.
>
>
Nope :-(, there is no direct way to do this.
I think this may be contrary to the user interface Apple wants us to
present. Apple seems to have very firm ideas about how help should work,
and they want all applications to work the same way. Sadly, help viewer is
a terrible application right now. I hope that Apple improves it.
>
>
> Does the AppKit provide this functionallity? If yes, where? If no: is
>
> there a prefered way to implement this?
>
I think the way to implement this would be to patch into NSApplication's
event dispatching. If the user is in "help" mode, bypass the normal mouse
down logic, find the object that would have received mouseDown: and instead
call mouseDownHelp: or some similar method. Add -mouseDownHelp: via a
category to NSResponder. Any object that chooses to
implement -mouseDownHelp: could open help viewer to the correct topic.
_______________________________________________
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.