• 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: Shane Stanley <email@hidden>
  • Date: Sat, 07 Jan 2012 13:27:27 +1100

On 07/01/2012, at 12:51 PM, John C. Welch 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_.

--
Shane Stanley <email@hidden>
'AppleScriptObjC Explored' <www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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: "John C. Welch" <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