MacPack equivalent of Wnd methods

10 views
Skip to first unread message

dri...@xeester.com

unread,
Mar 22, 2013, 6:50:44 AM3/22/13
to jniwrapp...@teamdev.com
Hello,

We are currently using the WinPack Api to handle native windows. We are using Wnd methods like Wnd.getAllWindows() to retrieve all windows and work on them.

What are the equivalent methods in the macpack ?

Thank you very much for your answers, it's quite urgent for us to know if it's possible !!

Denis

dri...@xeester.com

unread,
Mar 22, 2013, 7:22:50 AM3/22/13
to jniwrapp...@teamdev.com, dri...@xeester.com
I found that jxdesktop.getAllWindows does something similar, but the API is différent ?

Does the Wnd class have an equivalent for mac ?

Thank you

Sergei Piletsky

unread,
Mar 22, 2013, 12:42:37 PM3/22/13
to dri...@xeester.com, jniwrapp...@teamdev.com
No, Wnd does not have an equivalent for Mac platforms. Can you please clarify where did you find the jxdesktop library?

If you found it in our JxCapture product, then you probably should notice in its samples that it provides WindowsManager class that allows getting all windows in the system using the "List<Window> allWindows = WindowManager.getInstance().getAllWindows();" method.

Hope this helps.

-Serge


--
You received this message because you are subscribed to the Google Groups "JNIWrapper Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jniwrapper-for...@teamdev.com.
To post to this group, send email to jniwrapp...@teamdev.com.
Visit this group at http://groups.google.com/a/teamdev.com/group/jniwrapper-forum/?hl=en.
For more options, visit https://groups.google.com/a/teamdev.com/groups/opt_out.
 
 

dri...@xeester.com

unread,
Mar 25, 2013, 6:03:11 AM3/25/13
to jniwrapp...@teamdev.com, dri...@xeester.com
Hi Sergei,

thank you for your answer.
Yes, we found it in the JxCapture API.

Our goal is to be able to "embed" a JDialog into a native mac window.
In the winpack API, our process is like that : 
1/ we "scan" every visible native window
2/ for each window matching our criteria, we create a JDialog
3/ Then we create a new Wnd(dialog), and we set the native window as the parent of the Wnd.

We need to be able to do the same on mac. Is it possible ?

Thank you !

Sergei Piletsky

unread,
Mar 25, 2013, 8:37:58 AM3/25/13
to dri...@xeester.com, jniwrapp...@teamdev.com
Hi Denis,

On Mac platform it's not that simple as on Windows: you cannot embed a window to another window if they are created by different processes due to security restrictions.

-Serge

Denis Rivas

unread,
Mar 25, 2013, 9:00:42 AM3/25/13
to
Hi Sergei,

do you mean that a security permission must be granted to do so, or that it's strictly impossible to make processes interoperate ?

If it were possible and that you had to develop such a feature, would it be complicated ?

Denis

Sergei Piletsky

unread,
Mar 25, 2013, 9:09:02 AM3/25/13
to Denis Rivas, jniwrapp...@teamdev.com
Hi Denis,

No, any security permission does not help, because this is the restriction of Mac OS X.

-Serge


On Mon, Mar 25, 2013 at 2:45 PM, Denis Rivas <dri...@xeester.com> wrote:
Hi Sergei,

do you mean that a security permission must be granted to do so, or that it's strictly impossible to make processes interoperate ?

If it were possible and that you add to develop such a feature, would it be complicated ?

Denis
Reply all
Reply to author
Forward
0 new messages