Re: This winodw has a parent window
aglee <[email protected]> Tue, 21 Dec 2010 18:44:59 +0000 (GMT)
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
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. 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] 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 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://wwwomnigroup.com/mailman/listinfo/macosx-dev