PDA

View Full Version : Using WebViews - is it the same as on iOS?




Noisemaker
Oct 25, 2010, 02:02 PM
IE, using UIWebView, and similar code? Or is it different?

If it's different, does anyone have a link to a tutorial to show the basics?



Catfish_Man
Oct 25, 2010, 03:48 PM
Much much more powerful (you have access to the full DOM via Objective-C, for example). Basic usage is probably similar.

chown33
Oct 25, 2010, 04:39 PM
If it's different, does anyone have a link to a tutorial to show the basics?

Start with the class reference doc.
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/WebKit/Classes/WebView_Class/Reference/Reference.html

There are 5 sample projects listed in Related sample code.

Also be sure to scroll to the bottom of the left-side Table of Contents column, and read the Webkit Programming Guide.

If you're looking for something that does a compare-and-contrast between WebView and UIWebView, or a "Mac WebView for iPhone UIWebView programmers", I don't think you'll find anything like that.

Noisemaker
Oct 25, 2010, 05:59 PM
Start with the class reference doc.
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/WebKit/Classes/WebView_Class/Reference/Reference.html

There are 5 sample projects listed in Related sample code.

Also be sure to scroll to the bottom of the left-side Table of Contents column, and read the Webkit Programming Guide.

If you're looking for something that does a compare-and-contrast between WebView and UIWebView, or a "Mac WebView for iPhone UIWebView programmers", I don't think you'll find anything like that.

Thanks.

I'm not so much dead-set on a compare/contrast, but just knowing where to start with it in OSX would be good. I have a good amount of experience with webviews in iOS, and hoped that it would translate directly into OS X coding.

I'll check out the dev docs and go from there. Any other suggestions would be a big help as well. :)