Re: NSAppleEventManager details ??
Re: NSAppleEventManager details ??
- Subject: Re: NSAppleEventManager details ??
- From: Jim Correia <email@hidden>
- Date: Fri, 14 Mar 2003 14:31:28 -0500
On Friday, March 14, 2003, at 01:50 PM, Lance Drake wrote:
- (void)setEventHandler:(id)handler
andSelector:(SEL)sel <--- what's this
?
forEventClass:(AEEventClass)eventClass
andEventID:(AEEventID)eventID
There're about 2 sentences written in support of this component. Does
anyone know of any sample code floating around that makes use of this
object? It should be simple - but the details are lacking.
[[NSAppleEventManager sharedAppleEventManager] setEventHandler: self
andSelector: @selector(handleMyEvent:withReply:)
forEventClass: 'MyCl'
andEventID: 'MyID'];
self is the handler, and selector is the message you want sent when the
app receives that event.
If you are doing more than a one off custom event here and there you
may want to look at the scripting support.
Jim
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.