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(),
I'm a big believer in using named constants:
CreateEvent (kCFAllocatorDefault, 'XXXX', 'XXXX', GetCurrentEventTime(),
> kEventAttributeUserEvent, &event);
>
> To send the even I use:
>
> EventTargetRef target = GetWindowEventTarget (winRef);
> SetEventParameter (event, 'prtg', 'etrg', sizeof (target), target);
Oops.
SetEventParameter (event, 'prtg', 'etrg', sizeof (target), &target);
Larry
> 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
_______________________________________________
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