Re: [#24594370] Re: Dragging Transparent NSWindow with parent NSOpenGLView
NickMtl <[email protected]> Fri, 2 Jul 2010 02:56:59 -0400
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
OK, it works now. For some reason, calling the following code right
before moving the main window makes it work:
NSWindow* nsMainWindow = [[AppController getAppController]
getMainWindow];
SearchFieldWindow* nsSearchFieldWindow =
[[SearchFieldWindowController sharedSearchFieldWindowController]
getWindow];
[nsMainWindow addChildWindow:nsSearchFieldWindow ordered:NSWindowAbove];
------
Thanks for the help.
>> Hrm? This is precisely the situation child windows are designed for.
>> We use them all over the place to keep overlays on top of windows as
>> they are dragged about.
>>
>> You'll need to post your code. Maybe you set up the relationship in
>> the wrong direction?
>>
--
- Nick -