Re: [Pyobjc-dev] NSGraphicsContext.graphicsPort() prints debugging message
Brought to you by:
ronaldoussoren
From: Ronald O. <ron...@ma...> - 2010-12-21 08:25:20
|
On 16 Dec, 2010, at 6:51, Greg Ewing wrote: > Every time NSGraphicsContext.graphicsPort() is called, I get > a message like this: > > 2010-12-16 18:49:28.865 Python[210:607] PyObjCPointer created: at 0x395ded0 of > type {CGContext=} > > Is there any way of turning these messages off? I'm finding > them annoying. 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. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev |