Re: Notes about WebCore
Re: Notes about WebCore
- Subject: Re: Notes about WebCore
- From: Kazutoshi Kubota <email@hidden>
- Date: Mon, 13 Jan 2003 01:25:37 +0900
Hi all,
On 2003.1.11, at 21:21 Asia/Tokyo, Phillip Mills wrote:
In my nib controller awakeFromNib, I created an instance of my
WebCoreBridge subclass and sent in the above message, followed by an
openUrl like yours. Nothing crashed, but I traced the code as far as
it emitting a Qt signal to start loading the URL (I think!). I have
not been able to figure out what's supposed to be connected to that
signal to see where processing goes from there.
I tried to log invoking methods of WebCoreBridge.
Safari called them with following order...
-[WebCoreBridge init]
-[WebCoreBridge setTextSizeMultiplier:]
-[WebCoreBridge setName]
-[WebCoreBridge canCachePage]
-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]
-[WebCoreBridge removeFromFrame:] (WebCoreBridge self invoking)
-[WebCoreBridge installInFrame:]
-[WebCoreBridge openURL:reload:headers:lastModified:pageCache:]
-[WebCoreBridge saveDocumentState] (WebCoreBridge self invoking)
-[WebCoreBridge add
Data:withEncoding:]
-[WebCoreBridge restoreDocumentState] (WebCoreBridge self invoking?)
-[WebCoreBridge referrer]
-[WebCoreBridge forceLayout]
-[WebCoreBridge add
Data:withEncoding:]
-[WebCoreBridge needsLayout] (WebCoreBridge self invoking)
-[WebCoreBridge drawRect:]
-[WebCoreBridge drawRect:withPainter:] (WebCoreBridge self invoking)
-[WebCoreBridge frameBorderStyle] (WebCoreBridge self invoking)
-[WebCoreBridge referrer] (many times invoking...)
-[WebCoreBridge end]
And at least needed to implement following protocol methods...
- (int)getObjectCacheSize;
- (BOOL)isReloading;
- (void)setIconURL:(NSString *)URL;
- (NSArray *)documentState;
- (NSString *)requestedURL;
- (void)setTitle:(NSString *)title;
- (void)setNeedsLayout;
- (id)startLoadingResource:(id)loader withURL:(NSString *)URL;
Sadly, my effort is not enough for displaying rendered view :(
My test app got EXC_BAD_ACCESS after invoking setTitle:
by WebCore, and I did not solve the problem yet.
Thanks,
----
Kazutoshi Kubota <email@hidden>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.