• 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 20:51:24 -0500
  • Thread-topic: Only works once?

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

On 07/01/2012, at 12:06 PM, John C. Welch wrote:

helpWIndowWebView's

That cap I looks a bit sus.

Yeah, I didn't notice it until I'd already compiled once. Luckily, thanks to autocomplete, it doesn't bite me as much as it could


Add some logging and see what you get:

on helpWindow_(sender)
set mypath to my NSBundle's mainBundle()'s URLForResource_withExtension_("index","html")
set my helpWindowIndex to NSURLRequest's requestWithURL_(mypath)
log helpWIndowWebView
log helpWIndowWebView's mainFrame()
helpWIndowWebView's mainFrame's loadRequest_(helpWindowIndex)
helpWindowHud's makeKeyAndOrderFront_(me)
end helpWindow_


Well, I can see where it's going sideways. The first time, I get:

2012-01-06 20:47:45.616 Derby Score[1938:707] <WebView: 0x400dcc5c0>

2012-01-06 20:47:45.617 Derby Score[1938:707] <WebFrame: 0x400b8d040>


The second and further times I get:

2012-01-06 20:47:58.712 Derby Score[1938:707] <WebView: 0x400dcc5c0>

2012-01-06 20:47:58.712 Derby Score[1938:707] (null)


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.

WTH??


--
Antiquis temporibus, nati tibi similes in rupibus ventosissimis exponebantur
ad necem.
(In the good old days, children like you were left to perish on windswept
crags.)

Jeff La Grua
 _______________________________________________
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>
References: 
 >Re: Only works once? (From: Shane Stanley <email@hidden>)

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