| Sign In/My Account | View Cart |
| Article: |
BYOB: Build Your Own Browser, Part 2 | |
| Subject: | Compile warnings expected? | |
| Date: | 2004-05-30 06:46:20 | |
| From: | jamie_young | |
|
Good article, I appreciate the move into a bit more advanced topics with actual code. It seems that advanced cocoa articles are getting hard to find, especially ones done after XCode was released. All that said, I wish the advanced articles could be a bit longer with more details covering the advanced topics. I really don't mind reading articles that span more than 3 web pages. (It seems many of the O'Reilly articles I find are targeted for a max of 3-4 pages).
|
||
Showing messages 1 through 4 of 4.
/Users/john/desktop/NewBrowser/MyDocument.m:102: warning: `WebDataSource' may not respond to `-request'
NSString *url = [[[[frame provisionalDataSource]
request] URL]
absoluteString];
Glad you like the article. Good news is that a third part of the article is already in the hands of the editor and going to be published next friday, so that should make up for some of the article length.
As for your warnings, as a rule it is ok but not advisable to ignore warnings that come from XCode/GCC. Warnings come when the compiler (GCC in the default existance) is confused about something, but nothing is actually wrong with the code. They often happen because the code calls a method within in a class that GCC can't identify.
In this instance Objective C gets these warnings because "WebFrame.h" has not been included, so it can not determine if "loadRequest" is one of WebFrame's methods. You can ignore this because "loadRequest" is one of WebFrame's methods, but if you want it to go away add "#import <WebKit/WebView.h>" to "MyDocument.h".
Andrew