Re: about help
Re: about help
- Subject: Re: about help
- From: Jessica Kahn <email@hidden>
- Date: Tue, 12 Feb 2002 11:54:17 -0800
Gerriet,
You've logged in to <
http://bugreport.apple.com/> with your ADC username
and password, and tried using the "New Problem" tab? If so, and you're
encountering the error you mention below, I suppose you can email
email@hidden to ask for assistance. I'm not at all familiar with
the innards of the web-based bug reporting system; sorry!
--Jessica
On Tuesday, February 12, 2002, at 09:41 AM, Gerriet M. Denkmann wrote:
From: Jake MacMullin <email@hidden>
Help Key? I can't see one on my Powerbook - maybe that's part of the
reason that this functionality is not used - not all macs have help keys
anymore.
My Next keyboard does not have a Help key either - Alternate + Control
is used in this case. Could be done by Apple as well.
And I tried to file a bug report, but the system told me that I "do not
have access to this function". So what?
On Dienstag, Februar 12, 2002, at 12:20 , Jessica Kahn wrote:
Please file a bug report to cover this enhancement request. Thanks!
--Jessica
On Monday, February 11, 2002, at 02:12 PM, Gerriet M. Denkmann wrote:
Acting on suggestions received (thanks very much!) I have made a
Category for NSView:
#import <Carbon/Carbon.h>
#import <Cocoa/Cocoa.h>
@implementation NSView( NSViewHelpGmd )
- (void)helpRequested:(NSEvent *)eventPtr;
{
NSBundle *mainBundle = [ NSBundle mainBundle ] ;
NSDictionary *infoDictionary = [ mainBundle infoDictionary ];
NSString *helpBookName = [ infoDictionary objectForKey:
@"CFBundleHelpBookFolder" ] ;
NSString *toolTipString ;
NSView *vv ;
OSStatus err ;
// find some view with a tool tip
vv = self ;
for(;;)
{
toolTipString = [ vv toolTip ] ;
if ( toolTipString != nil ) break ;
vv = [ vv superview ] ;
if ( vv == nil ) break;
};
if ( toolTipString == nil ) // open book
{
err = AHGotoPage( (CFStringRef)helpBookName, nil, nil );
}
else // search in book
{
err = AHSearch( (CFStringRef)helpBookName,
(CFStringRef)toolTipString );
};
if ( err != 0 )
{
NSLog(@"helpRequested failed for %@", [ self description ]);
}
else
{
//NSLog(@"helpRequested for %@", [ self description ]);
};
}
@end
Hitting the help key gives a ?-cursor, then clicking on any window,
button or whatever opens the help text (searching for the tool tip
string in the help book). So far so good.
But wouldn't it be nice if Apple could add (along with the tool tip
text) a help-url, and make helpRequested: open this url
automatically? Using the tool tip as search string is clearly only
the second best solution.
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.
Dies ist eine Signatur, welche nicht witztig ist.
_______________________________________________
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: | |
| >Re: about help (From: "Gerriet M. Denkmann" <email@hidden>) |