cocoa - Is it possible to clip a child NSWindow to its parent? -


i have borderless nswindow i'm adding child window main window of app. in particular mode child window may lie partially outside frame of parent window zooms forward enclosed.

if main window not full screen, looks odd child window drawn outside main window. possible clip it?

no, don’t think so. on os x, windows (and thereby nswindows) composited window server, , have own buffers. they’re opengl quads , drawing done texture (that simplification, it’s how works).

you don’t explain in question why you’re using child window (as opposed to, instance, layer-backed view, or plain nsview); often, can avoid using child windows @ all, seem straightforward solution problem in instance.

(note, if you’re coming windows background, cocoa expects use views rather windows purposes; in typical application need use windows @ top level of interface hierarchy.)


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -