Re: NSGraphicsContext.graphicsPort() prints debugging message

Ronald Oussoren <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev
smime.p7s (application/pkcs7-signature, 2.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.