On Sat, Oct 10, 2009 at 12:12 PM, jon <trambl...@mac.com> wrote:

> I take the info off the website,  "data" if you like...   data that changes
> or could change at any given time,  every second even....   and process it,
>  and trigger an event if the data is to my liking.
>
> how would i get the data off a website,   formated in the only way i know
> it?  which is how it is displayed on the website,  html formated,  (i don't
> control the website).   is there a better process?


WebView is primarily about displaying a webpage. It sounds like you aren't
using it for that. So likely no need to pay for the extra overhead, etc.

It sounds like you need to get at the HTTP content itself and pull data out
of that, right? If all you need is the HTTP content you can drop down to
things like Foundation's URL Loading System [1], maybe drop down lower to
CFNetwork [2], or use something like libcurl (as Greg suggested, possibly
the better suggestion depending on your exact needs).

Also make sure to understand the standard HTTP caching so you can avoid
unneeded data loads (note Mac OS X provided HTTP API honor this scheme, so
you likely don't have to do any work of your own).

http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html

-Shawn

[1] <
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/URLLoadingSystem/URLLoadingSystem.html
>
[2] <
http://developer.apple.com/mac/library/samplecode/CFNetworkHTTPDownload/index.html
>
[3] <
http://developer.apple.com/mac/library/documentation/Darwin/Reference/ManPages/man3/libcurl.3.html
>
_______________________________________________

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to