Re: WebDocumentText
Re: WebDocumentText
- Subject: Re: WebDocumentText
- From: Sherm Pendley <email@hidden>
- Date: Thu, 15 Jul 2004 09:36:06 -0400
On Jul 14, 2004, at 5:43 PM, Tom Harrington wrote:
Since the WebDocumentText docs indicate that "Classes that adopt this
protocol should also adopt WebDocumentView and inherit from NSView,"
I'm tempted to think that -[WebFrameView documentView] is the one I
want. But it's not documented to return anything but a plain NSView
(no promises about protocol conformance).
It's my understanding that -documentView is the method you want. It
makes no promises about protocol conformance because it can't - the
document in the WebFrame might be an image, a flash movie, QuickTime,
etc., and in those cases it won't conform to WebDocumentText.
You need to use -conformsToProtocol: to check it yourself.
sherm--
_______________________________________________
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.