• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSEvent and postEvent:atStart
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSEvent and postEvent:atStart (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: Censoring pasted text
  • Next by Date: Re: [iPhone] Sample code for live camera stream?
  • Previous by thread: Re: NSEvent and postEvent:atStart
  • Next by thread: Sending a list of path strings to the Finder via Scripting Bridge
  • Index(es):
    • Date
    • Thread