[Pyobjc-dev] Calling methods with variable arguments
Brought to you by:
ronaldoussoren
From: Ian B. <ia...@on...> - 2009-07-03 03:05:37
|
Hey there, I'm currently loading up a custom Cocoa framework, and one of the methods I need to call involves variable arguments terminated by nil: [buildSomethingNamed:@"Name" withObjects:@"one", @"two", nil] I know that PyObjC typically has problems with varargs and needs a special wrapper. Is there anything I can do at my end (that is, outside the framework) to wrap this particular method and get it to work with PyObjC? Even a pointer to somewhere to find example code for dealing with varargs would be helpful; Google wasn't terribly useful. Ian |