• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help Viewer frustration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/>


  • Follow-Ups:
    • Re: Help Viewer frustration
      • From: Jessica Kahn <email@hidden>
  • Prev by Date: Re: CodeWarrior and Cocoa
  • Next by Date: Newbie Question: NSTableView.DataSource
  • Previous by thread: Re: CodeWarrior and Cocoa
  • Next by thread: Re: Help Viewer frustration
  • Index(es):
    • Date
    • Thread