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
WebView novice question
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
WebView novice question
Subject
:
WebView novice question
From: John Stiles <
email@hidden
>
Date: Wed, 26 Oct 2005 16:04:59 -0700
I just started experimenting with web views yesterday. They seem to work great, with one exception.
I only have to display a simple HTML page--no ancillary files or anything--so I'm loading my data by setting up an NSData object and then calling:
[[myWebView mainFrame] load
Data:htmlNotes
MIMEType:@"text/ html" textEncodingName:NULL baseURL:NULL];
(It doesn't seem to be documented as such, but I found that if I set the textEncodingName to NULL, then it will honor the Content-Type in the meta tags in the head. If I specified any encoding of my own, like @"utf-8", then it would no longer honor the meta tag Content- Type. But that's probably just a weakness in the docs.)
Anyway, here's the real question--if you right click in my web view, there's only one option displayed in the menu: "Reload." If you choose this reload option, the web view contents simply vanish. Doh!
Is the "loadData" method going to end up making a lot of extra work for me? Should I just blat a file to the temp directory and point the web view at that?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Follow-Ups
:
Re: WebView novice question
From:
Justin Anderson <email@hidden>
Prev by Date:
Re: Odd Runtime Message
Next by Date:
Re: OpenGL 2.0 for Apple?
Previous by thread:
ABPeoplePickerView and selectedValues method
Next by thread:
Re: WebView novice question
Index(es):
Date
Thread