Re: NSXPCConnection not working in pyobjc
Durgaprasad Kelkar <[email protected]> Mon, 23 Aug 2021 13:36:20 +0530
| Newsgroups | gmane.comp.python.pyobjc.devel |
|---|---|
| Message-ID | <CAFDmxH0r+ELSrRb5-F=QCZj58XbHEjosbCG4vi4yvEq+pKHPkA@mail.gmail.com> |
--===============2975548699525794678== Content-Type: multipart/alternative; boundary="000000000000bcebeb05ca357e00" --000000000000bcebeb05ca357e00 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Ronald, Thanks a lot for quick response. I don=E2=80=99t have any experience of writing C extension. I have started = learning the same. I found some blogs explaining this. They are writing .c files and then compiling with python setup.py install I can=E2=80=99t find any help to compile with Xcode clang compiler. Can you please help me out. Any pointers or examples would be helpful. On Sat, 21 Aug 2021 at 3:33 PM, Ronald Oussoren <[email protected]> wrote: > Sadly enough the issue is not fixed and cannot be fixed. I=E2=80=99ve des= cribed > the workaround in < > 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) as wontfix because > there are no public APIs that can be used to register the =E2=80=9Cextend= ed method > signature=E2=80=9D information needed by NSXPCInterface. I have filed a= n 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: > > 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 > . > Links given in the answers are not working. > Can you give latest links or code snippet for the same. > > Does issue > https://bitbucket.org/ronaldoussoren/pyobjc/issues/256/enable-using-xpcin= terface-with-protocols. > is fixed. > > Any help around this would be helpful. > > _______________________________________________ > 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/ > > --000000000000bcebeb05ca357e00 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div><div dir=3D"auto">Hi Ronald,</div></div><div dir=3D"auto">Thanks a lot= for quick response.=C2=A0</div><div dir=3D"auto">I don=E2=80=99t have any = experience of writing C extension. I have started learning the same.=C2=A0<= /div><div dir=3D"auto">I found some blogs explaining this. They are writing= .c files and then compiling with python setup.py install</div><div dir=3D"= auto"><br></div><div dir=3D"auto">I can=E2=80=99t find any help to compile = with Xcode clang compiler.</div><div dir=3D"auto">Can you please help me ou= t. Any pointers or examples would be helpful.</div><div dir=3D"auto"><br></= div><div><br><div class=3D"gmail_quote"><div dir=3D"ltr">On Sat, 21 Aug 202= 1 at 3:33 PM, Ronald Oussoren <<a href=3D"mailto:[email protected]"= >[email protected]</a>> wrote:<br></div><blockquote class=3D"gmail_= quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1= ex"><div style=3D"word-wrap:break-word;line-break:after-white-space">Sadly = enough the issue is not fixed and cannot be fixed. I=E2=80=99ve described t= he workaround in <<font face=3D"-apple-system, BlinkMacSystemFont, Segoe= UI, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji"><span= style=3D"box-sizing:border-box;color:var(--color-text-link);font-size:14px= "><a href=3D"https://pyobjc.readthedocs.io/en/latest/notes/using-nsxpcinter= face.html" target=3D"_blank">https://pyobjc.readthedocs.io/en/latest/notes/= using-nsxpcinterface.html</a></span></font>>, that description assumes y= ou know how to write C extensions.<div><br></div><div>I=E2=80=99ve closed t= he the issue at GitHub (<a href=3D"https://github.com/ronaldoussoren/pyobjc= /issues/256" target=3D"_blank">https://github.com/ronaldoussoren/pyobjc/iss= ues/256</a>) as wontfix because there are no public APIs that can be used t= o register the =E2=80=9Cextended method signature=E2=80=9D information need= ed by NSXPCInterface. =C2=A0 I have filed an issue with Apple about this, b= ut have little hope that this will accomplish anything. And even if my requ= est is granted this would end up in macOS 13 at the earliest.</div><div><br= ></div><div>Ronald<br><div><br><blockquote type=3D"cite"><div>On 20 Aug 202= 1, at 11:43, Durgaprasad Kelkar <<a href=3D"mailto:[email protected]" t= arget=3D"_blank">[email protected]</a>> wrote:</div><br><div></div></bl= ockquote></div></div></div><div style=3D"word-wrap:break-word;line-break:af= ter-white-space"><div><div><blockquote type=3D"cite"><div><div dir=3D"auto"= >I am working on NSXPCConnection in Pyobjc.</div><div dir=3D"auto">I could = not create NSXPCInterface with a protocol.</div><div dir=3D"auto">I referre= d <a href=3D"https://stackoverflow.com/questions/52284089/is-it-possible-to= -use-pyobjc-with-a-privilved-xpc-helper-tool-and-xpcinterface-a" target=3D"= _blank">https://stackoverflow.com/questions/52284089/is-it-possible-to-use-= pyobjc-with-a-privilved-xpc-helper-tool-and-xpcinterface-a</a>.</div><div d= ir=3D"auto">Links given in the answers are not working.</div><div dir=3D"au= to">Can you give latest links or code snippet for the same.</div><div dir= =3D"auto"><br></div><div dir=3D"auto">Does issue <a href=3D"https://bitbuck= et.org/ronaldoussoren/pyobjc/issues/256/enable-using-xpcinterface-with-prot= ocols" target=3D"_blank">https://bitbucket.org/ronaldoussoren/pyobjc/issues= /256/enable-using-xpcinterface-with-protocols</a>. is fixed.</div><div dir= =3D"auto"><br></div><div dir=3D"auto">Any help around this would be helpful= .=C2=A0</div></div></blockquote></div></div></div><div style=3D"word-wrap:b= reak-word;line-break:after-white-space"><div><div><blockquote type=3D"cite"= ><div> _______________________________________________<br>Pyobjc-dev mailing list<= br><a href=3D"mailto:[email protected]" target=3D"_blank">Py= [email protected]</a><br><a href=3D"https://lists.sourceforge.= net/lists/listinfo/pyobjc-dev" target=3D"_blank">https://lists.sourceforge.= net/lists/listinfo/pyobjc-dev</a><br></div></blockquote></div></div></div><= div style=3D"word-wrap:break-word;line-break:after-white-space"><div><br><d= iv> <div dir=3D"auto" style=3D"word-wrap:break-word;line-break:after-white-spac= e"><div style=3D"color:rgb(0,0,0);font-family:Helvetica;font-size:12px;font= -style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:no= rmal;text-align:start;text-indent:0px;text-transform:none;white-space:norma= l;word-spacing:0px;text-decoration:none">=E2=80=94</div><div style=3D"color= :rgb(0,0,0);font-family:Helvetica;font-size:12px;font-style:normal;font-var= iant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;= text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;tex= t-decoration:none"><br></div><div style=3D"color:rgb(0,0,0);font-family:Hel= vetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weigh= t:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transf= orm:none;white-space:normal;word-spacing:0px;text-decoration:none">Twitter = / micro.blog: @ronaldoussoren</div><div style=3D"color:rgb(0,0,0);font-fami= ly: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;text-decoration:none">Bl= og: <a href=3D"https://blog.ronaldoussoren.net/" target=3D"_blank">https://= blog.ronaldoussoren.net/</a></div></div> </div> <br></div></div></blockquote></div></div> --000000000000bcebeb05ca357e00-- --===============2975548699525794678== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2975548699525794678== 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 --===============2975548699525794678==--