Re: How to use NSOpenGLContext.setValues_forParameter_ with PyObjC <= 2.2?

Greg Ewing <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
Phillip Nguyen wrote:

> I'm calling
> NSOpenGLContext.setValues_forParameter_() which takes as its first argument a
> pointer to an int (or array of ints). It seems to work fine in PyObjC 2.3, but
> in PyObjC 2.2b3 I get
> 
>    ValueError: depythonifying 'pointer', got 'int'

Seeing as it's really a pointer to an array, have you tried
something obvious such as a list of ints?

-- 
Greg

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources
and provide services. The best practices for maximizing a physical server's
connectivity to a physical network are well understood - see how these
rules translate into the virtual world? 
http://p.sf.net/sfu/oracle-sfdevnlfb
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.