Re: This winodw has a parent window
Christiaan Hofman <[email protected]> Tue, 21 Dec 2010 19:54:53 +0100
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
On Dec 21, 2010, at 19:44, aglee wrote: > Just double-checking -- although the window you mean to print from isn't a sheet, was there a sheet just prior to opening the print panel? For example, if for some odd reason you had a sheet that confirms "Do you want to print?", you might want to explicitly close that sheet before opening the print panel. > No, there was no sheet other than the print sheet. > You could use gdb to look into the view hierarchy of 0x9cc300 which might tell you what the panel in question is: > > po [[0x9cc300 contentView] subviews] The panel whose description was written in the message is the parent window for the print sheet, and this had no parent window and also no sheet before the print sheet was attached. > > Working the other way, you could see what windows have the panel as a parent view (though I suspect it's just the print panel): > > po [0x9cc300 childWindows] > > --Andy > 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). Christiaan > On Dec 21, 2010, at 01:21 PM, Christiaan Hofman <[email protected]> wrote: > >> >> On Dec 21, 2010, at 19:15, Carlos Salinas wrote: >> >> > Sounds like the particular window is already running modally as a sheet. You cannot display a sheet on another sheet. You can run the print panel as a separate modal window, -runModal. >> > >> > 'Los >> > >> >> No, it isn't. >> >> Christiaan >> >> > On Dec 21, 2010, at 10:11 AM, Christiaan Hofman wrote: >> > >> >> Whenever I try to print using the print sheet from a particular window, I get a log message that says "This winodw has a parent window <NSPanel : 0x9cc300>". I cannot make any sense out of this. What is this about? Does it mean anything? Is there something I may be doing wrong? BTW, the misspelling is not mine, this is exactly what the log says. >> >> >> >> thanks, >> >> Christiaan >> >> _______________________________________________ >> MacOSX-dev mailing list >> [email protected] >> http://www.omnigroup.com/mailman/listinfo/macosx-dev