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

Re: Only works once?


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

On 1/6/12 9:27 PM, "Shane Stanley" <email@hidden> wrote:

>>
>>So it looks like it's setting up mypath correctly on all runs, but on
>>all but the first run, the NSURLRequest's requestWithURL is failing.
>
>Looks to me like the problem is with the WebView -- mainFrame() shouldn't
>be returning <null>.
>
>But you're doing more work than you need by essentially loading it each
>time anyway. Why not just load it the first time it's called, and from
>then on just show it? Something like making helpWindowIndex a property
>set to missing value, and then in your handler check its value, and if
>it's not missing value, just makeKeyAndOrderFront_.

I'll give it a shot. I kind of had to cobble it together, there's not a
lot of info on opening local files in a webview, the assumption is
(logically) biased towards loading URLS from an address bar


--
"Any ship can be a  minesweeper... once."
Anon.



 _______________________________________________
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: "John C. Welch" <email@hidden>
References: 
 >Re: Only works once? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Only works once?
  • Next by Date: WebView problems
  • Previous by thread: Re: Only works once?
  • Next by thread: Re: Only works once?
  • Index(es):
    • Date
    • Thread