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 protected]) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
