localStorage not persisting in OSX app (Xcode 4.3)
From what I have seen, if you are building a OSX desktop HTML5 app and want localStorage to persist in your WebView wrapper, you need to do something like this: WebPreferences* prefs = [webView preferences]; [prefs _setLocalStorageDatabasePath:@"~/Library/Application Support/MyApp"]; [prefs setLocalStorageEnabled:YES]; Taken from: How do I enable Local Storage in my WebKit-based application? But this doesn't seem to work for me in Xcode 4.3. Instead I get "No visible @interface for 'WebPreferences' declares the selector '_setLocalStorageDatabasePath:' "No visible @interface for 'WebPreferences