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: kEventParamPostTarget



On 7/31/05 3:52 AM, Yaron Tadmor didst favor us with:

> To create and post the event I use:
> 
> EventRef event;
> CreateEvent (NULL, 'XXXX', 'XXXX', GetCurrentEventTime(),
> kEventAttributeUserEvent, &event);
> 
> To send the even I use:
> 
> EventTargetRef target = GetWindowEventTarget (winRef);
> SetEventParameter (event, 'prtg', 'etrg', sizeof (target), target);
> PostEventToQueue(GetCurrentEventQueue(), event, kEventPriorityStandard));

More named constants ('prtg' is not correct):

SetEventParameter (event, kEventParamPostTarget, typeEventTargetRef, sizeof
(target), &target);

I also noticed your code won't compile because of the extra ')' as the end
of the PostEventToQueue. How close is this code to the code you're actually
using?

Larry

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

References: 
 >RE: kEventParamPostTarget (From: "Yaron Tadmor" <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.