Help Viewer frustration
Help Viewer frustration
- Subject: Help Viewer frustration
- From: Matt Ridley <email@hidden>
- Date: Fri, 11 May 2001 01:01:04 +0100
Hi folks,
I'm trying to use Help Viewer to open the HTML help file which
is inside my app's bundle. This code should work, but instead it
always opens the file with the default ".html" application.
NSString *path = [[NSBundle mainBundle] pathForResource:@"index"
ofType:@"html"];
if (path)
[[NSWorkspace sharedWorkspace] openFile:path
withApplication:@"Help Viewer"];
It just won't use Help Viewer. I've tried specifying the full
path to Help Viewer in the withApplication argument:
/System/Library/CoreServices/Help Viewer
but it just will not use Help Viewer. In fact, when I specify
the full path, my app's window appears to deactivate, but my app
stays frontmost, and nothing else is launched (not even the
default ".html" application).
Can anyone help me with this?
Best,
-Matt
--
Matt Ridley
<
http://www.mattridley.com/>