• 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: Carbon Events vs Cocoa Events
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbon Events vs Cocoa Events


  • Subject: Re: Carbon Events vs Cocoa Events
  • From: Brian Webster <email@hidden>
  • Date: Mon, 1 Apr 2002 14:17:55 -0600

On Monday, April 1, 2002, at 02:02 PM, cocoa-dev-
email@hidden wrote:

The question is, how do you have some method or function get called
whenever an event occurs in Cocoa? In Carbon, it's easy, because you can
just do whatever you want with the EventRecord that you get from
WaitNextEvent (in the old model - I don't know much about the new one to
comment on it). How could you make a simple app in Cocoa that logged all
events, for example? I can do that in Carbon, but I have no idea how it
would be done in Cocoa.

You can subclass NSApplication and override the sendEvent: method.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Prev by Date: Re: DO question.
  • Next by Date: Re: Length network operation, needs wait cursor
  • Previous by thread: Re: Carbon Events vs Cocoa Events
  • Next by thread: Re: NSFileManager notification
  • Index(es):
    • Date
    • Thread