4 Jul 2009 18:12
Re: Calling methods with variable arguments
Ian Beck <ian <at> onecrayon.com>
2009-07-04 16:12:58 GMT
2009-07-04 16:12:58 GMT
Thanks, Dirk. I believe that's exactly what I need if I'm going to figure out how to get this darn method working. Ian On Jul 4, 2009, at 6:07 AM, Dirk Stoop wrote: > Hi Ian, > > I'm not completely clear on the technical details of how > BridgeSupport definitions are used in PyObjC, but here's some > possible pointers: > > search for "withObjects" in the file linked below and you'll find > the exceptions defined for NSArray.arrayWithObjects: and other > similar methods: >> http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-framework-Cocoa/Exceptions/Foundation.bridgesupport > > > This test file shows how to explicitely add metadata to a class > description at runtime: >> http://svn.red-bean.com/pyobjc/trunk/pyobjc/pyobjc-core/PyObjCTest/test_metadata_py.py > > > The example at line 45 seems to do something similar to what you need: > > objc.registerMetaDataForSelector("OC_MetaDataTest", > "makeObjectArray:on:", > dict( > arguments={(Continue reading)
RSS Feed