Re: [Pyobjc-dev] Re: [Pythonmac-SIG] pyobjc / cocoa
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2002-10-16 22:10:40
|
On Wednesday, Oct 16, 2002, at 17:45 America/New_York, bb...@ma... wrote: >> >> That's not a case of ambiguity, that's just Programmer Error. >> Unknown selector is what they *should* get for issuing the selectors >> in an incorrect order. Notice that he's using ordered list >> arguments, not dictionary arguments for his call function. > > In that you are correct -- an array of arguments could be interpreted > in this fashion. > > However, I completely fail to see how... > > rt.call(obj, "drawSelfAtPoint", p, "color", c, "withSize", "s") > > ... is cleaner/clearer/better than... > > obj.drawSelfAtPoint_color_withSize_(p, c, s) It's not. Though, I can see how it'd be kinda useful in strange cases to have the "rt.call" function around. -bob |