text: .
  --
  Greg
  On 16 Dec, 2010, at 6:51, Greg Ewing wrote:
  >.
  They are printed because creating PyObjCPointers is a bug. The print should go away when you add "import Quartz" somewhere in your program before you call the graphicsPort method (because that way PyObjC knows that it needs to create a CGContext object instead of a generic pointer).
  Ronald
  >
  > --
  > Greg
  >
  > ------------------------------------------------------------------------------
  > Lotusphere 2011
  > Register now for Lotusphere 2011 and learn how
  > to connect the dots, take your collaborative environment
  > to the next level, and enter the era of Social Business.
  >
  > _______________________________________________
  > Pyobjc-dev mailing list
  > Pyobjc-dev@...
  >
  Have the Xcode template changed recently? I'm getting new errors when I try the pyobjc Xcode templates I had installed some time ago.
  Xcode ver 3.2.5
  I have to remove PPC architectures form the project setting to get it to compile and then I get the console output below.
  Any ideas?
  Thanks,
  -Scott
  Traceback (most recent call last):
  File "main.py", line 10, in <module>
  import objc
  ImportError: No module named objc
  2011-01-29 23:43:00.279 junl[57821:a0f] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '/Users/scott/Development/junl/main.m:44 main() PyRun_SimpleFile failed with file '/Users/scott/Development/junl/build/Debug/junl.app/Contents/Resources/main.py'. See console for errors.'
  *** Call stack at first throw:
  (
  0 CoreFoundation 0x963ac6ba __raiseError + 410
  1 libobjc.A.dylib 0x9543e509 objc_exception_throw + 56
  2 CoreFoundation 0x963ac3e8 +[NSException raise:format:arguments:] + 136
  3 CoreFoundation 0x963ac35a +[NSException raise:format:] + 58
  4 junl 0x00002c76 main + 1032
  5 junl 0x00002842 start + 54
  6 ??? 0x00000001 0x0 + 1
  )?
  2. What's the easiest way modify the graph laughs example and get it up and running? Have the changes to PyObjC made its approach
  outdated?
  Thanks,
  -Scott.
  Thanks,
  -Scott
  On Jan 30, 2011, at 1:03 AM, Scott Harris wrote:
  > I think the issue is that something has changed in Xcode. I've explicitly made the main.m in the template call python2.6.
  >
  > It used to work with all the apple supplied stuff , so I don't want to install new stuff to confuse the debugging.
  >
  > So it is running python 2.7 even though I explicitly put this in main.m:
  >
  > Py_SetProgramName("/usr/bin/python2.6");
  >
  > Where is Xcode picking 2.7 up from?
  >
  > -Scott
  > On Jan 30, 2011, at 12:35 AM, Jair Gaxiola wrote:
  >
  >> On Sun, Jan 30, 2011 at 1:10 AM, Scott Harris <scottrharris@...> wrote:
  >>> Yes. pyobjc is found when I run python from the terminal. I'm using the Apple supplied pyobj and python.
  >>>
  >>
  >> Ok, check python version uses in terminal and xcode is the same. Try
  >> install pyobjc from easy_install.
  >>
  >> --
  >> SIN ETIQUETAS.[ PUNTO ]
  >>
  >>
  >>
  >
  On 30 Jan, 2011, at 9:15, Scott Harris wrote:
  >.
  You cannot control which framework is used by the Xcode templates other than by installing or removing frameworks. The templates should pick whichever framework gets used when you link with '-framework Python'.
  This is suboptimal, there really should be an option somewhere that can be used to explicitly select a Python.
  I haven't looked at the xcode templates for a long time because working on them is an experience that is not much better than just banging my head against a wall: the templates are text-ish files (undocumented format) with some markers in them and Apple doesn't provide tools that make it easier to work on templates.
  Ronald
  On 30 Jan, 2011, at 21:38, Scott Harris wrote:
  >?
  Xcode's code completion and other tools don't work when the project doesn't have an Objective-C file in it.
  > 2. What's the easiest way modify the graph laughs example and get it up and running? Have the changes to PyObjC made its approach
  > outdated?
  The link to that example doesn't work for me right now.
  That said, I tend to use py2app to create application bundles and don't use Xcode for Python development at all because for a Python developer Xcode is just a basic editor with a lot of junk (said junk is very usefull when writing Objective-C, but most tools in Xcode don't understand code that isn't [Objective-]C[++]
  Ronald