Re: This winodw has a parent window

Avi Drissman <avi-wYYLmqtpiAJWk0Htik3J/[email protected]> Tue, 21 Dec 2010 17:01:37 -0500
Newsgroups gmane.comp.macosx.devel
Message-ID <[email protected]>
Are you sure that you don't have any weird third-party software installed?

Avi

On Tue, Dec 21, 2010 at 4:51 PM, Eric Gorr <[email protected]> wrote:

>
> On Dec 21, 2010, at 3:04 PM, Christiaan Hofman wrote:
>
> >
> > On Dec 21, 2010, at 20:17, aglee wrote:
> >
> >> On Dec 21, 2010, at 01:54 PM, Christiaan Hofman <[email protected]>
> wrote:
> >>> Actually the panel does have an overlay child window. Though I see no
> reason why this would be a problem, and it also does not seem to be what the
> log message refers to (it says parent window, not child window).
> >>
> >> I wasn't sure whether the "<NSPanel : 0x9cc300>" refers to "this window"
> or the parent window.
> >>
> >> In any case, unless you're using some third-party code that prints this
> message, I'm out of ideas except to echo Eric Gorr's suggestion to try to
> create a minimal reproducible case.
> >>
> >> Good luck,
> >> --Andy
> >>
> >
> > Apparently the print panel was a red herring. I also get the same log
> when I just move the window. Somehow I never got this before, at least this
> is the first time I notice it. The print sheet just happened to move the
> window because the print sheet was too big. I can reproduce this in about
> the simplest case, just add a child window to a window and move the window.
> Now this log is pretty annoying.
> >
> > If anyone wants to see it, I just created an app from the standard simple
> app template, adding the following to the app delegate implementation (and
> an NSWindow ivar named overlay):
> >
> > - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
> >    NSRect rect = [window contentRectForFrameRect:[window frame]];
> >    overlay = [[NSWindow alloc] initWithContentRect:rect
> styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:YES];
> >    [overlay setAlphaValue:0.5];
> >    [overlay setBackgroundColor:[NSColor redColor]];
> >    [overlay orderFront:nil];
> >    [window addChildWindow:overlay ordered:NSWindowAbove];
> > }
>
> hummm....
>
> I don't see the warning you were reporting...
>
> In the console, this is the entire output that I get back:
>
> -----
> [Session started at 2010-12-21 16:49:42 -0500.]
> GNU gdb 6.3.50-20050815 (Apple version gdb-1510) (Wed Sep 22 02:45:02 UTC
> 2010)
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys001
> Loading program into debugger…
> Program loaded.
> run
> [Switching to process 20132]
> Running…
>
> Debugger stopped.
> Program exited with status value:0.
> -----
>
> I am using Xcode 3.2.5.
> Component versions
> Xcode IDE: 1760.0
> Xcode Core: 1763.0
> ToolSupport: 1758.0_______________________________________________
> MacOSX-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/macosx-dev
>