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



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));




>-----Original Message-----
>From: Eric Schlegel [mailto:email@hidden]
>Sent: Thursday, July 28, 2005 6:15 PM
>To: Yaron Tadmor
>Cc: email@hidden
>Subject: Re: kEventParamPostTarget
>
>
>On Jul 28, 2005, at 7:02 AM, Yaron Tadmor wrote:
>
>> Hi,
>>
>>
>>
>> Is the event parameter kEventParamPostTarget, supposed to work for
>> all events?
>>
>> I'm sending a custom event to a tool window, and it doesn't get to
>> it's target.
>
>Yes, it should. Can you show the code that creates and posts the
>event, and the code that installs your event handler?
>
>-eric=

 _______________________________________________
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: Eric Schlegel <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.