开发者

addChild my window to other application's window

开发者 https://www.devze.com 2023-02-11 06:55 出处:网络
I ne开发者_开发知识库ed to add my NSWindow as a child to window of other application. I want to use

I ne开发者_开发知识库ed to add my NSWindow as a child to window of other application.

I want to use - (void)addChildWindow:(NSWindow *)childWindow ordered:(NSWindowOrderingMode)orderingMode

But I know the ID of that window. How I can get windowRef of that window?


Those windows don't belong to you so you're not going to get the window reference you need to use this method. Your best bet is to use the Accessibility API to watch the desired window and move your own window to the desired position when the target window is moved or resized.

0

精彩评论

暂无评论...
验证码 换一张
取 消