Re: Only works once?
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