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

Phillip Nguyen <[email protected]>
Newsgroups gmane.comp.python.pyobjc.devel
Message-ID <[email protected]>
> Seeing as it's really a pointer to an array, have you tried
> something obvious such as a list of ints?

Trying

    self._nscontext.setValues_forParameter_([ 1 ], NSOpenGLCPSwapInterval)

just gives me

    ValueError: depythonifying 'pointer', got 'list'

instead.  Is there another way for me to pass in an array of ints?

--phillip



------------------------------------------------------------------------------
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.