Re: Reviving an old PyObjC app

"Diez B. Roggisch" <[email protected]> Tue, 17 Apr 2018 17:53:42 +0200
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
--===============3025742264108821790==
Content-Type: multipart/signed;
 boundary="Apple-Mail=_A32F7751-4E2A-41C1-9AC4-6C5EFF8B8282";
 protocol="application/pgp-signature"; micalg=pgp-sha512


--Apple-Mail=_A32F7751-4E2A-41C1-9AC4-6C5EFF8B8282
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_8A9261A9-FEFE-4140-AC96-F5439ED6DBC8"


--Apple-Mail=_8A9261A9-FEFE-4140-AC96-F5439ED6DBC8
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi Marc,

disclaimer: I last checket with xcode 8.x, so this might have broken.

What happens for me is that these outlets (and actions) just appear in =
IB after I add them to the classes. There seems to be some at least =
basic parsing of the class declarations happening.

Cheers,

Diez

> On 17. Apr 2018, at 17:49, Marc Van Olmen <[email protected]> =
wrote:
>=20
> Diez,
>=20
> I just downloaded your sample project. And that raises a question: I =
see
>=20
>     view =3D IBOutlet("view")
>=20
> but how do I make Xcode 9.x recognize a new outlet or a new action I =
want to add.
> In the past I was able to do that in old Interface Builder because you =
manually type the outlets and actions in the Library tool but I haven't =
found a way to do that in in Xcode. For that reason I have not converted =
my older .nib files to the new format.
>=20
> thanks
>=20
> Marc.
>=20
>=20
> On Tue, Apr 17, 2018 at 11:00 AM, Diez B. Roggisch <[email protected] =
<mailto:[email protected]>> wrote:
> Maybe this helps you:
>=20
>  https://github.com/deets/minimal-pyobjc/tree/outlets-and-actions =
<https://github.com/deets/minimal-pyobjc/tree/outlets-and-actions>
>=20
> It=E2=80=99s a small example project I created for a talk. It worked =
until quite recently for me after Xcode transitioned to the built-in IB, =
and XIBs. Haven=E2=80=99t checked it in a while, but maybe it gives you =
a headstart.
>=20
> Cheers,
>=20
> Diez
>=20
>> On 17. Apr 2018, at 15:10, Zachery Bir <[email protected] =
<mailto:[email protected]>> wrote:
>>=20
>> Hey, all
>>=20
>> I=E2=80=99m resurrecting an app I wrote years ago. In addition to =
updating it to Python 3, I=E2=80=99m also trying to get it happy with =
modern Xcode. I=E2=80=99ve removed the NibClassBuilder references, but =
I=E2=80=99m not entirely sure the best way to make it IB-able. The docs =
seems to be pinned to much older versions of Xcode, and the File -> Read =
Class Files has long gone. Anyone have any updated pointers for using =
modern Xcode (9+) with PyObjC? I=E2=80=99m happy to contribute updated =
docs once I=E2=80=99ve made the transition myself.
>>=20
>> Thanks,
>>=20
>> Zac
>>=20
>>=20
>> =
--------------------------------------------------------------------------=
----
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org <http://slashdot.org/>! =
http://sdm.link/slashdot <http://sdm.link/slashdot>
>> _______________________________________________
>> Pyobjc-dev mailing list
>> [email protected] =
<mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev =
<https://lists.sourceforge.net/lists/listinfo/pyobjc-dev>
>=20
>=20
> =
--------------------------------------------------------------------------=
----
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot =
<http://sdm.link/slashdot>
> _______________________________________________
> Pyobjc-dev mailing list
> [email protected] =
<mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev =
<https://lists.sourceforge.net/lists/listinfo/pyobjc-dev>
>=20
>=20


--Apple-Mail=_8A9261A9-FEFE-4140-AC96-F5439ED6DBC8
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; -webkit-line-break: after-white-space;" =
class=3D"">Hi Marc,<div class=3D""><br class=3D""></div><div =
class=3D"">disclaimer: I last checket with xcode 8.x, so this might have =
broken.</div><div class=3D""><br class=3D""></div><div class=3D"">What =
happens for me is that these outlets (and actions) just appear in IB =
after I add them to the classes. There seems to be some at least basic =
parsing of the class declarations happening.&nbsp;</div><div =
class=3D""><br class=3D""></div><div class=3D"">Cheers,</div><div =
class=3D""><br class=3D""></div><div class=3D"">Diez</div><div =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 17. Apr 2018, at 17:49, Marc Van Olmen &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"ltr" =
class=3D""><span style=3D"font-size:12.800000190734863px" =
class=3D"">Diez,</span><div style=3D"font-size:12.800000190734863px" =
class=3D""><br class=3D""></div><div =
style=3D"font-size:12.800000190734863px" class=3D"">I just downloaded =
your sample project. And that raises a question: I see</div><div =
style=3D"font-size:12.800000190734863px" class=3D""><br =
class=3D""></div><div style=3D"font-size:12.800000190734863px" =
class=3D""><div style=3D"margin: 0px; font-stretch: normal; font-size: =
12px; line-height: normal; font-family: Menlo; color: rgb(231, 232, =
235); background-color: rgb(41, 43, 54);" class=3D"">&nbsp; =
&nbsp;&nbsp;view =3D IBOutlet(<span style=3D"color:rgb(222,58,60)" =
class=3D"">"view"</span>)</div></div><div =
style=3D"font-size:12.800000190734863px" class=3D""><br =
class=3D""></div><div style=3D"font-size:12.800000190734863px" =
class=3D"">but how do I make Xcode 9.x recognize a new outlet or a new =
action I want to add.&nbsp;</div><div =
style=3D"font-size:12.800000190734863px" class=3D"">In the past I was =
able to do that in old Interface Builder because you manually type the =
outlets and actions in the Library tool but I haven't found a way to do =
that in in Xcode. For that reason I have not converted my older .nib =
files to the new format.</div><div =
style=3D"font-size:12.800000190734863px" class=3D""><br =
class=3D""></div><div style=3D"font-size:12.800000190734863px" =
class=3D"">thanks</div><div style=3D"font-size:12.800000190734863px" =
class=3D""><br class=3D""></div><div =
style=3D"font-size:12.800000190734863px" class=3D"">Marc.</div><div =
style=3D"font-size:12.800000190734863px" class=3D""><br =
class=3D""></div></div><div class=3D"gmail_extra"><br class=3D""><div =
class=3D"gmail_quote">On Tue, Apr 17, 2018 at 11:00 AM, Diez B. Roggisch =
<span dir=3D"ltr" class=3D"">&lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank" class=3D"">[email protected]</a>&gt;</span> wrote:<br =
class=3D""><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 =
.8ex;border-left:1px #ccc solid;padding-left:1ex"><div =
style=3D"word-wrap:break-word" class=3D"">Maybe this helps you:<div =
class=3D""><br class=3D""></div><div class=3D"">&nbsp;<a =
href=3D"https://github.com/deets/minimal-pyobjc/tree/outlets-and-actions" =
target=3D"_blank" class=3D"">https://github.com/deets/<wbr =
class=3D"">minimal-pyobjc/tree/outlets-<wbr =
class=3D"">and-actions</a></div><div class=3D""><br class=3D""></div><div =
class=3D"">It=E2=80=99s a small example project I created for a talk. It =
worked until quite recently for me after Xcode transitioned to the =
built-in IB, and XIBs. Haven=E2=80=99t checked it in a while, but maybe =
it gives you a headstart.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Cheers,</div><div class=3D""><br class=3D""></div><div =
class=3D"">Diez</div><div class=3D""><br class=3D""><div =
class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On 17. =
Apr 2018, at 15:10, Zachery Bir &lt;<a href=3D"mailto:[email protected]" =
target=3D"_blank" class=3D"">[email protected]</a>&gt; wrote:</div><br =
class=3D"m_-4577546385324445282Apple-interchange-newline"><div =
class=3D""><div class=3D"">Hey, all<br class=3D""><br class=3D"">I=E2=80=99=
m resurrecting an app I wrote years ago. In addition to updating it to =
Python 3, I=E2=80=99m also trying to get it happy with modern Xcode. =
I=E2=80=99ve removed the NibClassBuilder references, but I=E2=80=99m not =
entirely sure the best way to make it IB-able. The docs seems to be =
pinned to much older versions of Xcode, and the File -&gt; Read Class =
Files has long gone. Anyone have any updated pointers for using modern =
Xcode (9+) with PyObjC? I=E2=80=99m happy to contribute updated docs =
once I=E2=80=99ve made the transition myself.<br class=3D""><br =
class=3D"">Thanks,<br class=3D""><br class=3D"">Zac<br class=3D""><br =
class=3D""><br class=3D"">------------------------------<wbr =
class=3D"">------------------------------<wbr =
class=3D"">------------------<br class=3D"">Check out the vibrant tech =
community on one of the world's most<br class=3D"">engaging tech sites, =
<a href=3D"http://slashdot.org/" target=3D"_blank" =
class=3D"">Slashdot.org</a>! <a href=3D"http://sdm.link/slashdot" =
target=3D"_blank" class=3D"">http://sdm.link/slashdot</a><br =
class=3D"">______________________________<wbr =
class=3D"">_________________<br class=3D"">Pyobjc-dev mailing list<br =
class=3D""><a href=3D"mailto:[email protected]" =
target=3D"_blank" class=3D"">[email protected].<wbr =
class=3D"">net</a><br class=3D""><a =
href=3D"https://lists.sourceforge.net/lists/listinfo/pyobjc-dev" =
target=3D"_blank" class=3D"">https://lists.sourceforge.net/<wbr =
class=3D"">lists/listinfo/pyobjc-dev</a><br =
class=3D""></div></div></blockquote></div><br class=3D""></div></div><br =
class=3D"">------------------------------<wbr =
class=3D"">------------------------------<wbr =
class=3D"">------------------<br class=3D"">
Check out the vibrant tech community on one of the world's most<br =
class=3D"">
engaging tech sites, <a href=3D"http://Slashdot.org" =
class=3D"">Slashdot.org</a>! <a href=3D"http://sdm.link/slashdot" =
rel=3D"noreferrer" target=3D"_blank" =
class=3D"">http://sdm.link/slashdot</a><br =
class=3D"">______________________________<wbr =
class=3D"">_________________<br class=3D"">
Pyobjc-dev mailing list<br class=3D"">
<a href=3D"mailto:[email protected]" =
class=3D"">[email protected].<wbr class=3D"">net</a><br =
class=3D"">
<a href=3D"https://lists.sourceforge.net/lists/listinfo/pyobjc-dev" =
rel=3D"noreferrer" target=3D"_blank" =
class=3D"">https://lists.sourceforge.net/<wbr =
class=3D"">lists/listinfo/pyobjc-dev</a><br class=3D"">
<br class=3D""></blockquote></div><br class=3D""></div>
</div></blockquote></div><br class=3D""></div></body></html>=

--Apple-Mail=_8A9261A9-FEFE-4140-AC96-F5439ED6DBC8--

--Apple-Mail=_A32F7751-4E2A-41C1-9AC4-6C5EFF8B8282
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEzBAEBCgAdFiEEijcjZP0vXZhz8OhhyBau9wuVhecFAlrWGIYACgkQyBau9wuV
hedfaAf/QG83YBUwR692/v5NUL30UBBceOfg9CLG+vdk8Co5hQyVGoRmBRiMODls
r8wPc64YE+RMSCATj61HQyyFpSgoeowW5oQ94Om0bN37gpZEXAH0AG5ag/PpVsoY
iCrXHK6v/LTvQcFAm2vQUmsmJvc6Avxij6sPlY0byba0RX3UMdB0dGr2PEvWud2s
iKSK/uErk3e8oKTvy+K3FyfRy0iCLSHgj9FxgPtueEJpdjRAHAX2y1PuxJwUDrQV
XtRlEwSNUpqnD4ikYkJDKsEhCoQr6fGA/owJhN4jrUE/6W6/U6I8G3oSkudAObfg
G35+xExPK8WsaSJl+mttKslMUAtlDg==
=1DK7
-----END PGP SIGNATURE-----

--Apple-Mail=_A32F7751-4E2A-41C1-9AC4-6C5EFF8B8282--


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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
--===============3025742264108821790==
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

--===============3025742264108821790==--