[Pyobjc-dev] Re: [Pythonmac-SIG] pyobjc / cocoa

Bob Ippolito bob@redivi.com
Wed, 16 Oct 2002 18:10:35 -0400


On Wednesday, Oct 16, 2002, at 17:45 America/New_York, bbum@mac.com 
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