• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSAppleEventManager details ??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSAppleEventManager details ?? (From: Lance Drake <email@hidden>)

  • Prev by Date: Re: Embedding perl ?
  • Next by Date: Re: is there a way to extract text from pdfs?
  • Previous by thread: NSAppleEventManager details ??
  • Next by thread: Re[2]: NSAppleEventManager details ??
  • Index(es):
    • Date
    • Thread