Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / Mac Programming / January 2005



Tip: Looking for answers? Try searching our database.

What is the last event a window can receive?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David Steuber - 31 Jan 2005 17:38 GMT
When using the Carbon API, what is the last event a window can
receive, and how do I ensure (what type spec do I need) that I receive
it?  Also, do I need to CFRelease the EventHandlerRef I got from
InstallEventHandler, or can I just ignore it?

Will calling RemoveEventHandler in response to an event ensure that I
don't receive future events for the given target?  Same question about
the EventHandlerRef again.

Signature

An ideal world is left as an excercise to the reader.
  --- Paul Graham, On Lisp 8.1

Miro Jurisic - 31 Jan 2005 22:35 GMT
> When using the Carbon API, what is the last event a window can
> receive, and how do I ensure (what type spec do I need) that I receive
> it?  Also, do I need to CFRelease the EventHandlerRef I got from
> InstallEventHandler, or can I just ignore it?

You was to use kEventClassHIObject, kEventHIObjectDestruct.

Do _not_ CFRelease the handler ref.

> Will calling RemoveEventHandler in response to an event ensure that I
> don't receive future events for the given target?  Same question about
> the EventHandlerRef again.

Yes, same answer about the handler ref.

meeroh

Signature

If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.