Re: Reviving an old PyObjC app

Marc Van Olmen <[email protected]> Tue, 17 Apr 2018 11:49:12 -0400
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <CAGxHhzSV4_Rg9SWN4ZdyLdMbrrAuz578KO01HTDFOZXrJSpAVg@mail.gmail.com>
--===============3228716964959896538==
Content-Type: multipart/alternative; boundary="94eb2c1a67eaa861d9056a0d47cc"

--94eb2c1a67eaa861d9056a0d47cc
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Diez,

I just downloaded your sample project. And that raises a question: I see

    view =3D IBOutlet("view")

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.

thanks

Marc.


On Tue, Apr 17, 2018 at 11:00 AM, Diez B. Roggisch <[email protected]> wrote:

> Maybe this helps you:
>
>  https://github.com/deets/minimal-pyobjc/tree/outlets-and-actions
>
> It=E2=80=99s a small example project I created for a talk. It worked unti=
l 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=
.
>
> Cheers,
>
> Diez
>
> On 17. Apr 2018, at 15:10, Zachery Bir <[email protected]> wrote:
>
> Hey, all
>
> I=E2=80=99m resurrecting an app I wrote years ago. In addition to updatin=
g 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 bes=
t 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 hap=
py to
> contribute updated docs once I=E2=80=99ve made the transition myself.
>
> Thanks,
>
> Zac
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Pyobjc-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Pyobjc-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
>
>

--94eb2c1a67eaa861d9056a0d47cc
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><span style=3D"font-size:12.800000190734863px">Diez,</span=
><div style=3D"font-size:12.800000190734863px"><br></div><div style=3D"font=
-size:12.800000190734863px">I just downloaded your sample project. And that=
 raises a question: I see</div><div style=3D"font-size:12.800000190734863px=
"><br></div><div style=3D"font-size:12.800000190734863px"><p style=3D"margi=
n:0px;font-stretch:normal;font-size:12px;line-height:normal;font-family:Men=
lo;color:rgb(231,232,235);background-color:rgb(41,43,54)">=C2=A0 =C2=A0=C2=
=A0view =3D IBOutlet(<span style=3D"color:rgb(222,58,60)">&quot;view&quot;<=
/span>)</p></div><div style=3D"font-size:12.800000190734863px"><br></div><d=
iv style=3D"font-size:12.800000190734863px">but how do I make Xcode 9.x rec=
ognize a new outlet or a new action I want to add.=C2=A0</div><div style=3D=
"font-size:12.800000190734863px">In the past I was able to do that in old I=
nterface Builder because you manually type the outlets and actions in the L=
ibrary tool but I haven&#39;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><di=
v style=3D"font-size:12.800000190734863px"><br></div><div style=3D"font-siz=
e:12.800000190734863px">thanks</div><div style=3D"font-size:12.800000190734=
863px"><br></div><div style=3D"font-size:12.800000190734863px">Marc.</div><=
div style=3D"font-size:12.800000190734863px"><br></div></div><div class=3D"=
gmail_extra"><br><div class=3D"gmail_quote">On Tue, Apr 17, 2018 at 11:00 A=
M, Diez B. Roggisch <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" t=
arget=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><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">Maybe this helps you:<div><b=
r></div><div>=C2=A0<a href=3D"https://github.com/deets/minimal-pyobjc/tree/=
outlets-and-actions" target=3D"_blank">https://github.com/deets/<wbr>minima=
l-pyobjc/tree/outlets-<wbr>and-actions</a></div><div><br></div><div>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. Hav=
en=E2=80=99t checked it in a while, but maybe it gives you a headstart.</di=
v><div><br></div><div>Cheers,</div><div><br></div><div>Diez</div><div><br><=
div><blockquote type=3D"cite"><div>On 17. Apr 2018, at 15:10, Zachery Bir &=
lt;<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>=
&gt; wrote:</div><br class=3D"m_-4577546385324445282Apple-interchange-newli=
ne"><div><div>Hey, all<br><br>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 ge=
t it happy with modern Xcode. I=E2=80=99ve removed the NibClassBuilder refe=
rences, 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 u=
sing modern Xcode (9+) with PyObjC? I=E2=80=99m happy to contribute updated=
 docs once I=E2=80=99ve made the transition myself.<br><br>Thanks,<br><br>Z=
ac<br><br><br>------------------------------<wbr>--------------------------=
----<wbr>------------------<br>Check out the vibrant tech community on one =
of the world&#39;s most<br>engaging tech sites, <a href=3D"http://Slashdot.=
org" target=3D"_blank">Slashdot.org</a>! <a href=3D"http://sdm.link/slashdo=
t" target=3D"_blank">http://sdm.link/slashdot</a><br>______________________=
________<wbr>_________________<br>Pyobjc-dev mailing list<br><a href=3D"mai=
lto:[email protected]" target=3D"_blank">[email protected]=
urceforge.<wbr>net</a><br><a href=3D"https://lists.sourceforge.net/lists/li=
stinfo/pyobjc-dev" target=3D"_blank">https://lists.sourceforge.net/<wbr>lis=
ts/listinfo/pyobjc-dev</a><br></div></div></blockquote></div><br></div></di=
v><br>------------------------------<wbr>------------------------------<wbr=
>------------------<br>
Check out the vibrant tech community on one of the world&#39;s most<br>
engaging tech sites, Slashdot.org! <a href=3D"http://sdm.link/slashdot" rel=
=3D"noreferrer" target=3D"_blank">http://sdm.link/slashdot</a><br>_________=
_____________________<wbr>_________________<br>
Pyobjc-dev mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]=
forge.<wbr>net</a><br>
<a href=3D"https://lists.sourceforge.net/lists/listinfo/pyobjc-dev" rel=3D"=
noreferrer" target=3D"_blank">https://lists.sourceforge.net/<wbr>lists/list=
info/pyobjc-dev</a><br>
<br></blockquote></div><br></div>

--94eb2c1a67eaa861d9056a0d47cc--


--===============3228716964959896538==
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
--===============3228716964959896538==
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

--===============3228716964959896538==--