Re: [Pyobjc-dev] NSRunAlertPanel signature?
Brought to you by:
ronaldoussoren
From: b.bum <bb...@ma...> - 2003-08-20 00:38:37
|
On Tuesday, August 19, 2003, at 12:16 , Zachery Bir wrote: > In the AppKit docs, it spells the method NSRunAlertPanel like this: > > int NSRunAlertPanel(NSString *title, NSString *msg, NSString > *defaultButton, NSString *alternateButton, NSString *otherButton, ...) > > I assumed that the ellipsis in argument list meant the additional > buttons were unbounded. However, PyObjC complains when more than 5 > parameters are passed. UI issues aside, is one or the other (signature > or implementation) incorrect? The additional arguments are just the formatting arguments to be combined with msg in a fashion similar to... [NSString stringWithFormat: msg, ...] So, just use Python's string composition functionality instead and pass a fixed set of five args. b.bum |