• 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
Only works once?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Only works once?


  • Subject: Only works once?
  • From: "John C. Welch" <email@hidden>
  • Date: Fri, 06 Jan 2012 20:06:21 -0500
  • Thread-topic: Only works once?

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 action
The 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.


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Only works once?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Have text automatically resize to fit a field
  • Next by Date: Re: Only works once?
  • Previous by thread: Re: Have text automatically resize to fit a field
  • Next by thread: Re: Only works once?
  • Index(es):
    • Date
    • Thread