Re: NSXPCConnection not working in pyobjc

Ronald Oussoren via Pyobjc-dev <[email protected]> Sat, 21 Aug 2021 12:03:03 +0200
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
--===============4565904829862172875==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_7D3B22D9-3EEC-404C-B98C-0705EADB941A"


--Apple-Mail=_7D3B22D9-3EEC-404C-B98C-0705EADB941A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Sadly enough the issue is not fixed and cannot be fixed. I=E2=80=99ve =
described the workaround in =
<https://pyobjc.readthedocs.io/en/latest/notes/using-nsxpcinterface.html =
<https://pyobjc.readthedocs.io/en/latest/notes/using-nsxpcinterface.html>>=
, that description assumes you know how to write C extensions.

I=E2=80=99ve closed the the issue at GitHub =
(https://github.com/ronaldoussoren/pyobjc/issues/256 =
<https://github.com/ronaldoussoren/pyobjc/issues/256>) as wontfix =
because there are no public APIs that can be used to register the =
=E2=80=9Cextended method signature=E2=80=9D information needed by =
NSXPCInterface.   I have filed an issue with Apple about this, but have =
little hope that this will accomplish anything. And even if my request =
is granted this would end up in macOS 13 at the earliest.

Ronald

> On 20 Aug 2021, at 11:43, Durgaprasad Kelkar <[email protected]> =
wrote:
>=20
> I am working on NSXPCConnection in Pyobjc.
> I could not create NSXPCInterface with a protocol.
> I referred =
https://stackoverflow.com/questions/52284089/is-it-possible-to-use-pyobjc-=
with-a-privilved-xpc-helper-tool-and-xpcinterface-a =
<https://stackoverflow.com/questions/52284089/is-it-possible-to-use-pyobjc=
-with-a-privilved-xpc-helper-tool-and-xpcinterface-a>.
> Links given in the answers are not working.
> Can you give latest links or code snippet for the same.
>=20
> Does issue =
https://bitbucket.org/ronaldoussoren/pyobjc/issues/256/enable-using-xpcint=
erface-with-protocols =
<https://bitbucket.org/ronaldoussoren/pyobjc/issues/256/enable-using-xpcin=
terface-with-protocols>. is fixed.
>=20
> Any help around this would be helpful.=20
> _______________________________________________
> Pyobjc-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

=E2=80=94

Twitter / micro.blog: @ronaldoussoren
Blog: https://blog.ronaldoussoren.net/


--Apple-Mail=_7D3B22D9-3EEC-404C-B98C-0705EADB941A
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Sadly=
 enough the issue is not fixed and cannot be fixed. I=E2=80=99ve =
described the workaround in &lt;<font face=3D"-apple-system, =
BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif, Apple Color =
Emoji, Segoe UI Emoji" class=3D""><span style=3D"box-sizing: border-box; =
color: var(--color-text-link); font-size: 14px;" class=3D""><a =
href=3D"https://pyobjc.readthedocs.io/en/latest/notes/using-nsxpcinterface=
.html" =
class=3D"">https://pyobjc.readthedocs.io/en/latest/notes/using-nsxpcinterf=
ace.html</a></span></font>&gt;, that description assumes you know how to =
write C extensions.<div class=3D""><br class=3D""></div><div =
class=3D"">I=E2=80=99ve closed the the issue at GitHub (<a =
href=3D"https://github.com/ronaldoussoren/pyobjc/issues/256" =
class=3D"">https://github.com/ronaldoussoren/pyobjc/issues/256</a>) as =
wontfix because there are no public APIs that can be used to register =
the =E2=80=9Cextended method signature=E2=80=9D information needed by =
NSXPCInterface. &nbsp; I have filed an issue with Apple about this, but =
have little hope that this will accomplish anything. And even if my =
request is granted this would end up in macOS 13 at the =
earliest.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Ronald<br class=3D""><div><br class=3D""><blockquote =
type=3D"cite" class=3D""><div class=3D"">On 20 Aug 2021, at 11:43, =
Durgaprasad Kelkar &lt;<a href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div dir=3D"auto" =
class=3D"">I am working on NSXPCConnection in Pyobjc.</div><div =
dir=3D"auto" class=3D"">I could not create NSXPCInterface with a =
protocol.</div><div dir=3D"auto" class=3D"">I referred <a =
href=3D"https://stackoverflow.com/questions/52284089/is-it-possible-to-use=
-pyobjc-with-a-privilved-xpc-helper-tool-and-xpcinterface-a" =
class=3D"">https://stackoverflow.com/questions/52284089/is-it-possible-to-=
use-pyobjc-with-a-privilved-xpc-helper-tool-and-xpcinterface-a</a>.</div><=
div dir=3D"auto" class=3D"">Links given in the answers are not =
working.</div><div dir=3D"auto" class=3D"">Can you give latest links or =
code snippet for the same.</div><div dir=3D"auto" class=3D""><br =
class=3D""></div><div dir=3D"auto" class=3D"">Does issue <a =
href=3D"https://bitbucket.org/ronaldoussoren/pyobjc/issues/256/enable-usin=
g-xpcinterface-with-protocols" =
class=3D"">https://bitbucket.org/ronaldoussoren/pyobjc/issues/256/enable-u=
sing-xpcinterface-with-protocols</a>. is fixed.</div><div dir=3D"auto" =
class=3D""><br class=3D""></div><div dir=3D"auto" class=3D"">Any help =
around this would be helpful.&nbsp;</div>
_______________________________________________<br class=3D"">Pyobjc-dev =
mailing list<br class=3D""><a =
href=3D"mailto:[email protected]" =
class=3D"">[email protected]</a><br =
class=3D"">https://lists.sourceforge.net/lists/listinfo/pyobjc-dev<br =
class=3D""></div></blockquote></div><br class=3D""><div class=3D"">
<div dir=3D"auto" style=3D"word-wrap: break-word; -webkit-nbsp-mode: =
space; line-break: after-white-space;" class=3D""><div =
style=3D"caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: normal; letter-spacing: normal; text-align: start; =
text-indent: 0px; text-transform: none; white-space: normal; =
word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: =
none;">=E2=80=94</div><div style=3D"caret-color: rgb(0, 0, 0); color: =
rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: =
normal; font-variant-caps: normal; font-weight: normal; letter-spacing: =
normal; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration: none;"><br class=3D""></div><div style=3D"caret-color: =
rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: =
normal; letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Twitter / =
micro.blog: @ronaldoussoren</div><div style=3D"caret-color: rgb(0, 0, =
0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; =
font-style: normal; font-variant-caps: normal; font-weight: normal; =
letter-spacing: normal; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration: none;">Blog: <a =
href=3D"https://blog.ronaldoussoren.net/" =
class=3D"">https://blog.ronaldoussoren.net/</a></div></div>
</div>
<br class=3D""></div></body></html>=

--Apple-Mail=_7D3B22D9-3EEC-404C-B98C-0705EADB941A--


--===============4565904829862172875==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============4565904829862172875==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Pyobjc-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

--===============4565904829862172875==--