I need to learn how to add a web browser into a cocoa application. (Mac)
From stackoverflow
-
Try WebKit. In particular, you might find the
MiniBrowserexample that comes with the developer tools interesting. It should be at/Developer/Examples/WebKit/MiniBrowser. -
It's not very difficult:
1) add a WebView object to your interface builder project.2) (this is the important part) be sure to implement the required delegate methods and set your implementing class as the WebView delegate (in IB). I don't recall exactly, but I think there are like 6 methods you need to implement in your delegate... then it will just work. (of course, check the example code...)
0 comments:
Post a Comment