Same error with both names. On Wed, Jun 3, 2015 at 11:31 AM, Scott Ribe <scott_r...@elevated-dev.com> wrote:
> On Jun 3, 2015, at 8:23 AM, Juanjo Conti <jjco...@carouselapps.com> wrote: > > > > Hi, I'm using WebView and I'd like to enable HTML5 local storage. > > > > I've read some questions on Stack Overflow where the suggestion is to do: > > > > WebPreferences *prefs = [webView preferences]; > > [prefs _setLocalStorageDatabasePath:@"~/Library/Application > Support/MyApp"]; > > [prefs setLocalStorageEnabled:YES]; > > > > but if I try something similar in Swift: > > > > webView.preferences._setLocalStorageDatabasePath(LocalStoragePath) > > webView.preferences.localStorage = true > > > > I get a "WebPreferences does not have a member named ..." error. > > > > How can I do it? > > > > Thanks in advance, > > I don't know Swift, nor much about WebViews, but I'd guess it's because > you got the member name wrong. Try localStorageEnabled. > > -- > Scott Ribe > scott_r...@elevated-dev.com > http://www.elevated-dev.com/ > https://www.linkedin.com/in/scottribe/ > (303) 722-0567 voice > > > > > > -- Juanjo Conti <jjconti <http://goog_2023646312>@carouselapps.com <jjco...@carouselapps.com>> Software Engineer - Carousel Apps <https://carouselapps.com> -- Carousel Apps Limited, registered in England & Wales with registered number 7689440 and registered office Unit 2 Artbrand Studios, 7 Leathermarket Street, London SE1 3HN. Any communication sent by or on behalf of Carousel App Ltd or any of its subsidiary, holding or affiliated companies or entities (together "Watu") is confidential and may be privileged or otherwise protected. If you receive it in error please inform us and then delete it from your system. You should not copy it or disclose its contents to anyone. Messages sent to and from Watu may be monitored to ensure compliance with our internal policies and to protect our business. Emails are not secure and cannot be guaranteed to be error free. Anyone who communicates with us by email is taken to accept these risks. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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 arch...@mail-archive.com