• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get documentView in a WebView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get documentView in a WebView?


  • Subject: Re: How to get documentView in a WebView?
  • From: Robert Walker <email@hidden>
  • Date: Tue, 11 Apr 2006 14:37:13 -0400

NSLog(@"%@", [[[webView mainFrame] frameView] documentView]);
This message does return (null) until there is actual web content being displayed within the main frame's frame view. I just tested this myself.

My results before and after displaying a web page in the main frame:
------------------------------------------------------------------------ -
2006-04-11 14:35:21.919 WebFrameTest[9621] (null)
2006-04-11 14:35:37.165 WebFrameTest[9621] <WebHTMLView: 0x3a41d0>
------------------------------------------------------------------------ -


On Apr 11, 2006, at 1:19 PM, Tristan Jehan wrote:

Sorry for asking this basic question again. But I still don't understand why the second line returns (null):

- (void) awakeFromNib
{
	NSLog(@"%@", [[webView mainFrame] frameView]);
	NSLog(@"%@", [[[webView mainFrame] frameView] documentView]);
}

Isn't there a default document view in my WebView?
Thanks for any hints.

Tristan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

-- Robert Walker email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >How to get documentView in a WebView? (From: Tristan Jehan <email@hidden>)

  • Prev by Date: One To Many Searching & Predicates
  • Next by Date: Re: Image within a custom NSView gets blurrier as I scale
  • Previous by thread: How to get documentView in a WebView?
  • Next by thread: Cocoaheads Lake Forest meeting tonight
  • Index(es):
    • Date
    • Thread