Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding parameters to OS carbon events



On Jul 25, 2004, at 08:35 AM, Mark wrote:

Is it safe to so this: (psuedo-code)

EventRef someOSEvent;

Add some custom parameters to someOSEvent via SetEVentParameter;
error=CallNextEventHandler(next, someOSEvent);
Remove custom parameters via RemoveEventParameter

return error;

The custom parameters do not overwite any OS parameters.

Yes it is, as long as you don't use any reserved 4-char codes (all lowercase letter codes). And you don't even need to remove the custom parameters.
--
Reality is what, when you stop believing in it, doesn't go away.
Failure is not an option. It is a privilege reserved for those who try.

David Duncan
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Adding parameters to OS carbon events (From: Mark <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.