• 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
clearing a webview after use
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

clearing a webview after use


  • Subject: clearing a webview after use
  • From: Koen van der Drift <email@hidden>
  • Date: Wed, 11 Apr 2012 08:51:32 -0400

In my application (OSX) I implemented an NSPopover that displays a
webview to show more info on a a particular item in my model (which
are listed in an NSTableView). So the user doubleclicks the table, and
the popover appears and shows the website related to that item. I
implemented back and forward buttons in case the user wants to browse
through the view in the popover. When the popover closes, I call:
setMaintainsBackForwardList:NO for the webview to clear the history,
because I don't want that to be available when the webview is opened
for another item.  So far so good, this all works very well.

Now when the user opens the popover for another item, I often first
see the previous page that was shown in the webview, which doesn't
look right to me.

Is there a way to empty or clear a webview when I close the popover,
so that next time it is opened it doesn't show the previous page? I
don't want to clear the cache, because when the webview is opened for
an item that was already selected, it can be loaded from the cache.

- Koen.
_______________________________________________

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

  • Follow-Ups:
    • Re: clearing a webview after use
      • From: Fritz Anderson <email@hidden>
  • Prev by Date: window resizing advice
  • Next by Date: Debugging NSWindowController and NSArrayController
  • Previous by thread: window resizing advice
  • Next by thread: Re: clearing a webview after use
  • Index(es):
    • Date
    • Thread