Re: $10 for a few [hours?] work
Re: $10 for a few [hours?] work
- Subject: Re: $10 for a few [hours?] work
- From: Daniel Todd Currie <email@hidden>
- Date: Mon, 8 Nov 2004 06:18:34 -0800
We have a winner! Since he contacted me off-list I'll keep it off
list, but anyway...
It seems to have been a problem with the html file. Even though the
file opened directly in Safari, Help Viewer, etc., and is pretty strict
html, it still wasn't read by the help api, for whatever reason. It
seems that the necessary line is:
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
Though I'm not certain that this is the only change that corrected the
problem. I promise to share more details later.
On a side note, I created this help page from a template that i used in
other apps... I can't imagine why this was not a problem in the other
apps. :\
-- DTC
On 2004 Nov 08, at 06:01, Daniel Todd Currie wrote:
I did already try Carbon's AHRegisterHelpBook, but i didn't realize
there are AppKit classse/methods that i can access directly. I will
look into this.
In any case, thank you so much for taking a look at this. It's a
relief to know that I am not completely crazy. If there's ever
anything I can do to help you out, beta testing perhaps, please let me
know.
-- DTC
On 2004 Nov 08, at 03:47, Wade Tregaskis wrote:
Well, I'm stumped. I've tried:
a) Defining a type for the application, since it was ???? to begin
with (and a lot of things in AppKit and related can't handle that)
b) Defining the keys in InfoPlist.strings and Info.plist (one or the
other, and both, and neither)
c) Replaced the html extension with htm
d) Replaced the html file with a generic one based on iMovie's help,
without CSS (Help Viewer can open the page fine anyway, but I thought
it worth a shot)
e) Renamed files to try and see if there's some implicit extensions
being appended or similar, or issues with spaces, or whatever (note:
iMovie's help uses spaces in everything, including folder names)
f) Moved & copied the help files into both Resources/ and
Resources/English.lproj (aside from
Resources/English.lprog/PersonalAideHelp/), both with directory
hierarchy and flatly
g) Tried recording AppleEvents to see what's being passed to Help
Viewer (no luck... does Script Editor's record button ever work for
anything?!?)
h) Checked out Help Viewer's launch command for any CLI parameters;
no luck (other than PSN)
....
The list goes on. I'd say this is an Apple bug, one way or another -
there's no rational explanation for this. Whether you're doing some
wrong or not, you (and I) have both followed Apple's documentation to
the letter, and I've compared every single relevant file to iMovie's
and they are perfectly equivalent. If nothing else, it's a
documentation issue. I suspect some sort of tricky XCode or
XCode-related bug; it has numerous times suddenly stopped building
the project, or generated binaries which crash on startup with
SIGTRAP (with complaints about not being able to find your embedded
framework, despite the fact it is quite clearly there as normal).
Randomly removing files and adding them back again usually fixes it
(typical XCode solution). :/
As a next step, you could try registering your help manually (it's
supposed to be grabbed from your Info.plist, but perhaps that's not
happening). You could also try using the AppKit help stuff directly,
rather than relying on NSApplication's showHelp.
For now, this has blown out to $5 an hour, and I've got an exam
tomorrow, so I'll leave it to others. :)
Wade Tregaskis (AIM, Yahoo & Skype: wadetregaskis, ICQ: 40056898, MSN
& email: email@hidden, Jabber:
email@hidden)
-- Sed quis custodiet ipsos custodes?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden