So, because Apple's help system is just a friggin' swamp, I'm doing the sensible thing...creating a panel with a webview and rolling my own.
I've got it to work...once. That is, if I go to the help menu, and select help, the panel opens, life is good. But if I close it, and reopen it, I get:
2012-01-06 20:01:07.112 Derby Score[1492:707] *** -[Derby_ScoreAppDelegate helpWindow:]: unrecognized function loadRequest_. (error -10000)
The code in the application for this is:
on helpWindow_(sender)
set mypath to my NSBundle's mainBundle()'s URLForResource_withExtension_("index","html")
set my helpWindowIndex to NSURLRequest's requestWithURL_(mypath)
helpWIndowWebView's mainFrame's loadRequest_(helpWindowIndex)
helpWindowHud's makeKeyAndOrderFront_(me)
end helpWindow_
The menu item has helpWindow as its sent actionThe Panel has helpWindowHud as its referencing outlet, and in Behavior, only "Restorable" is checked. I've tried it with that unchecked, no change. Same for "Release when closed".
I've NSBundle, and NSURLRequest explicitly added as classes.
If it didn't work at all, I'd understand that. But only once?
Thanks,
john
--
Here’s a helpful tip for job interviews: try not to stab your future boss in the arm with a freshly sharpened pencil. If you must stab someone with a pencil, have the common sense to dull the point to a state where you can be sure it won’t easily break the skin.