Women in Technology

Hear us Roar



Article:
  BYOB: Build Your Own Browser, Part 2
Subject:   re: Compile warnings expected?
Date:   2004-05-31 17:23:38
From:   johnts
Response to: re: Compile warnings expected?

Nice article, always looking for more Cocoa tutorials.


I was also getting the warnings, and adding an #import did fix it, however I added "#import <WebKit/WebFrame.h>" Now I get another warning:


/Users/john/desktop/NewBrowser/MyDocument.m:102: warning: `WebDataSource' may not respond to `-request'


I'm guessing it's just another import.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • re: Compile warnings expected?
    2004-05-31 17:32:24  Andrew Anderson | [View]

    could be. if you give me the actual code that is on line 102 (or 100-105 or so) of your MyDocument.m, I can get more of an idea of what is happening...
    • re: Compile warnings expected?
      2004-06-01 06:07:02  johnts [View]

      I'm not at my Mac, but I believe it was this line:

      NSString *url = [[[[frame provisionalDataSource]
      request] URL]
      absoluteString];


      I got rid of the warning by adding "#import <WebKit/WebDataSource.h>