Re: No parent window for sheets?

2008-03-10 Thread Keary Suska
on 3/9/08 11:35 AM, [EMAIL PROTECTED] purportedly said: > I guess the assumption on the AppKit's part is that a particular panel/ > window will not be recycled as both a sheet and a panel within an > application. This kinda makes sense as there can only be a single > modal panel up at a time, but

Re: No parent window for sheets?

2008-03-09 Thread Mike Abdullah
I guess the assumption on the AppKit's part is that a particular panel/ window will not be recycled as both a sheet and a panel within an application. This kinda makes sense as there can only be a single modal panel up at a time, but there can be multiple sheets. Therefore the method is not

Re: No parent window for sheets?

2008-03-09 Thread Paul Kim
Hi Jim, Maybe I should just send my queries directly to you in the future since you always seem to be the one answering :) I think traversing the window list is not worth it for what I am doing (it'll be on my blog soon). While the definition for -isSheet is somewhat odd, I think it shoul

Re: No parent window for sheets?

2008-03-08 Thread Jim Correia
On Mar 8, 2008, at 4:56 PM, Paul Kim wrote: I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, calling - parentWindow on the sheet returns nil. The "parent" window does not have any child windows but -attachedSheet does retu

No parent window for sheets?

2008-03-08 Thread Paul Kim
I always assumed that sheets had a child-parent relationship with the window they were attached to. In my little test, calling -parentWindow on the sheet returns nil. The "parent" window does not have any child windows but -attachedSheet does return the sheet. As for why this matters, I was