Re: NSAppleEventManager (id)hanlder
Re: NSAppleEventManager (id)hanlder
- Subject: Re: NSAppleEventManager (id)hanlder
- From: David P Henderson <email@hidden>
- Date: Tue, 8 May 2001 14:49:57 -0400
On Tuesday, May 8, 2001, at 12:59 , Rosyna wrote:
>
In the setEventHandler:andSelector:forEventClass:andEventID: method
>
what is the difference between the setEventHandler:(id)handler and
>
andSelector:@selector(function)?
>
(id)handler is a pointer to an object where as (SEL)sel is an identifier
for a method name. Think of it like this, handler is the object which
handle the event and sel is the method through which it will do its work.
Dave
--
Chaos Assembly Werks
"The Trend over the last 20 years or so has been to design computer
languages that enforce a state of paranoia. You're expected to program
every module as if it were in a state of siege In Perl culture, by
contrast, you're expected to stay out of someone's home because you
weren't invited in, not because there are bars on the windows."
from Programming Perl