Re: NSEvent and postEvent:atStart
Re: NSEvent and postEvent:atStart
- Subject: Re: NSEvent and postEvent:atStart
- From: koko <email@hidden>
- Date: Fri, 25 May 2012 07:07:51 -0600
Thanks a bunch!
Overriding -sendEvent seems easiest.
-koko
On May 25, 2012, at 7:04 AM, Ken Thomases wrote:
> On May 24, 2012, at 11:53 PM, Graham Cox wrote:
>
>> On 25/05/2012, at 12:40 PM, koko wrote:
>>
>>> On May 24, 2012, at 7:56 PM, Graham Cox wrote:
>>>
>>>> Another object will pull events off the queue.
>>>
>>> Can you point me to the docs that cover pulling events off the queue?
>>
>> [NSWindow nextEventMatchingMask:untilDate:inMode:dequeue:]
>>
>> [NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
>
> Those are correct, but most events are pulled from the queue (using those methods) inside of Cocoa and then delivered to the application object via the -sendEvent: method. An override of that is often where one would see their own application-specific events.
>
> Regards,
> Ken
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden