[Pythonmac-SIG] noob question: handling protocols and files

Bob Ippolito bob at redivi.com
Mon Aug 8 12:54:55 CEST 2005


On Aug 8, 2005, at 12:40 AM, Ronald Oussoren wrote:

>
> On Monday, August 08, 2005, at 00:30AM, Bob Ippolito  
> <bob at redivi.com> wrote:
>
>>> I really don't think I would have guessed to pass a string with the
>>> selector name. That and the use of GURL instead of gurl was all it
>>> took to get my program called at the right time.
>>>
>>
>> Selectors themselves are just interned char*
>>
>
> That depends on your point of view :-). The C type 'SEL' and the  
> result of @selector is indeed an interned char*, I'd say a selector  
> is the same as an instance method.

A selector is just a name, it's not an instance method until you ask  
an instance for its implementation of a selector :)

-bob



More information about the Pythonmac-SIG mailing list