Re: [Pyobjc-dev] Reviving an old PyObjC app
Brought to you by:
ronaldoussoren
From: Diez B. R. <de...@we...> - 2018-04-17 15:53:57
|
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 <ma...@ac...> wrote: > > Diez, > > I just downloaded your sample project. And that raises a question: I see > > view = 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 <de...@we... <mailto:de...@we...>> wrote: > Maybe this helps you: > > https://github.com/deets/minimal-pyobjc/tree/outlets-and-actions <https://github.com/deets/minimal-pyobjc/tree/outlets-and-actions> > > It’s 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’t checked it in a while, but maybe it gives you a headstart. > > Cheers, > > Diez > >> On 17. Apr 2018, at 15:10, Zachery Bir <zb...@za... <mailto:zb...@za...>> wrote: >> >> Hey, all >> >> I’m resurrecting an app I wrote years ago. In addition to updating it to Python 3, I’m also trying to get it happy with modern Xcode. I’ve removed the NibClassBuilder references, but I’m 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’m happy to contribute updated docs once I’ve 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://slashdot.org/>! http://sdm.link/slashdot <http://sdm.link/slashdot> >> _______________________________________________ >> Pyobjc-dev mailing list >> Pyo...@li... <mailto:Pyo...@li...> >> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev <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 <http://sdm.link/slashdot> > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... <mailto:Pyo...@li...> > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev <https://lists.sourceforge.net/lists/listinfo/pyobjc-dev> > > |