• 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
[UIWeVview] goBack:/goForward: (correction)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[UIWeVview] goBack:/goForward: (correction)


  • Subject: [UIWeVview] goBack:/goForward: (correction)
  • From: Donald Hall <email@hidden>
  • Date: Thu, 6 Jan 2011 11:14:10 -0600

Sorry, it's not ""loadDocument:inView:"," it's "[aWebView loadRequest:request]" that works. I shouldn't post at midnight!

Don

Hi,

It seems that these two methods work fine if the view content is loaded by "loadDocument:inView:", but don't work if the HTML data is loaded into the web view via "loadHTMLString: baseURL". In the former case the back and forward buttons I made to invoke these two methods work, but when I use the latter they don't. In both cases any links and anchors in the view respond as expected. My workaround (as yet untested) is to assemble my view content, which is made up of text from several files, write it to a temporary file in /tmp, and use loadDocument: on the temporary file.

Am I missing something, or is the the way it should work? Is the base URL important here?

Thanks,

Don
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Next by Date: How to get "colored" font smoothing in a CALayer
  • Previous by thread: Re: Execute a pre-starting script first, when the App bundle is launched, then the main executable
  • Next by thread: How to get "colored" font smoothing in a CALayer
  • Index(es):
    • Date
    • Thread