How do I implement this method (see below)? I'm new to Objective-C and I'm just not getting it right.
From: http://lists.apple.com/archives/Webkitsdk-dev/2008/Apr/msg00027.html
By default databases have a quota of 0; this quota must be increased before any database will be stored on disk.
WebKit clients should implement the WebUIDelegate method
- webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:
and increase the quota as desired when that method is called. This method is defined in WebUIDelegatePrivate.h. It was added too late in the previous release cycle to make it into a non-private header. It would be worthwhile to file a bug about moving this call to WebUIDelegate.h so that it is part of the official API.
John
Here's the final answer.
I was using the MiniBrowser sample app.
In MyDocument.m I added this function:
Got some help from a discussion board:
There seems to be an implementation of this method included in WebKit's WebKitTools in their public SVN. (The class is named UIDelegate). http://trac.webkit.org/browser/trunk/WebKitTools/DumpRenderTree/mac/U...
I'm assuming you've created a delegate for your WebKit view. In that delegate class, create a method with the signature:
You can probably use a modified version of UIDelegate's implementation:
I haven't tried this, so YMMV.
Jon
In whatever class you've defined as the delegate for your WebView you need to implement that method, something like this:
This worked for me: https://stackoverflow.com/a/8975014/146099 - it's a slight variation on Jeff's Answer.