Now it's a year later and I can hardly remember anything (it really sucks having a birth year that has the same diff with this year as its last two digits; it's not a senior moment anymore but a senior epoch). I had a wee bit o'trouble hooking up my custom NSView subclass. It turns out that if you write the class (or at least stub it out) first, then Interface Builder will know about it and you can just drag a Custom View onto the nib window and set the class, and you're done.
So then, naturally, I tried it on my machine at work, and failed. And on my laptop, and failed as well! For a different reason.
And I decided to look at this as a learning opportunity. :)
In my brutish way, I added this to
main.py
:And I get:
That is definitely not the system Python. But the thing is, I have a lot of different Pythons on my machine (2.6.1, 2.6.4, 2.6.6, 2.7.1, 3.0)... These two are the same:
which one is 2.6.4?
not the one from the other day:
it's not even the MacPorts one either, different build date:
Using Unix find (here):
some of these are directories, not executables
More than 30---mostly from PyObjC projects built as standalones!
I found it (should've guessed):
I'm not sure, perhaps this was an aborted experiment with MacPython python...
So, to solve it, modify
.pydistutils.cfg
and the XCode project works! I asked a question on Stack Overflow about how to get XCode to do what I want it to do. And I'll let you know.