That should be:
I added the addChildWindow:ordered: call to webView:createWebViewWithRequest:
and things work perfectly.
-s
On Thu, Jul 31, 2008 at 10:55 PM, Sumner Trammell
<[EMAIL PROTECTED]> wrote:
> I've solved it, finally. My mistake was not realizing that the
> (WebView *)sender b
I've solved it, finally. My mistake was not realizing that the
(WebView *)sender being passsed into webViewShow: is the CHILD
webView. I needed to act on the parent webView before things got that
far.
I added the call to addChildWindow:ordered: and things work perfectly.
Move the main window, a
Nope. This version crashes as well:
[[[self webView] window] addChildWindow:[[theDocument webView] window]
ordered:NSWindowAbove];
I'm getting something wrong in the way I'm looking at this problem.
What am I not seeing?
Thanks,
-s
On Thu, Jul 31, 2008 at 1:01 PM, Sumner Trammell
<[EMAI
Thanks Jens.
I'll change that config. I did see the warning, but figured I would
run it anyway.
In a document-based app created using the Xcode template, there is in
fact a window outlet on File's Owner, which in this case is of class
MyDocument. What does that window outlet actually represent?
Thanks Graham.
I'm beginning to wonder if this will work at all? It just occurred to
me that every time I click a popup-type link in my webView, that popup
is itself a new instance of MyDocument. I don't see how I could add
that popup window as a child of the main window when they are separate
d
On 30 Jul '08, at 9:51 PM, Sumner Trammell wrote:
but it doesn't work. I get *** -[MyDocument window]: unrecognized
selector sent to instance 0x1613ab30 in the run log.
aSender is the WebView in the main window.
self is the MyDocument object, and it has a window outlet that I can
see when I r
NSDocument doesn't implement -window
I think you're getting muddled about what "sender" is and the
relationship between the document and other objects. Using
addChildWindow: should be OK, once you've sorted this out.
hth,
Graham
On 31 Jul 2008, at 2:51 pm, Sumner Trammell wrote:
but it
Hi. In my WebKit-based app, there is an occasional popup window, and
I'm trying to make it so that when you move the main window around,
the popup moves as well.
Here is my typical, vanilla WebView delegate method. In it, new
windows are made visible:
- (void)webViewShow:(WebView *)aSender {