[Pyobjc-dev] dynamic update of metadata for CF types
Brought to you by:
ronaldoussoren
From: Orestis M. <or...@or...> - 2009-04-03 20:37:29
|
Hello, I'm struggling in using registerCFSignature. What I want is to use CGColorGetComponents that returns a variable length array of floats. I think that this particular case is fixed in trunk, given that I found a testcase for it. However, I have to use the stock PyObjC that comes with Leopard for now, and I'm looking for ways I could update that signature at runtime. The closest I got was: objc.registerCFSignature('CGColorGetComponents', '[3f]', CGColorGetTypeID()) Unfortunately, I still get a PyObjCPointer and the accompanying error message. Is there any way of doing what I want to do? Thanks, Orestis -- or...@or... http://orestis.gr/ |