Re: CGEventTap Not Receiving Events after some time

2010-09-30 Thread Erik Aigner
No, i figured out. It was some code in the callback that prevented me from identifying a timeout message (wasn't easy recognizable on the first look). Regards, Erik On 30.09.2010, at 14:49, Bill Cheeseman wrote: > > On Sep 30, 2010, at 6:28 AM, Erik Aigner wrote: > >> I already check for thes

Re: CGEventTap Not Receiving Events after some time

2010-09-30 Thread Bill Cheeseman
On Sep 30, 2010, at 6:28 AM, Erik Aigner wrote: > I already check for these events, but they never occur. I think it might be > that some other > app inserts itself again before my (active, not listen only) tap? > > The event tap specifically taps system events for the media keys > previous/pl

Re: CGEventTap Not Receiving Events after some time

2010-09-30 Thread Erik Aigner
I already check for these events, but they never occur. I think it might be that some other app inserts itself again before my (active, not listen only) tap? The event tap specifically taps system events for the media keys previous/playpause/next. I guess the new iTunes version probably "reconqu

Re: CGEventTap Not Receiving Events after some time

2010-09-30 Thread Bill Cheeseman
On Sep 29, 2010, at 3:52 PM, Erik Aigner wrote: > When I create an event tap with CGEventTapCreate(..) and add it to the > runloop everything works as expected. > However, after some time (I don't know what triggers this) the event tap > doesn't receive events anymore, until > I manually call

CGEventTap Not Receiving Events after some time

2010-09-29 Thread Erik Aigner
When I create an event tap with CGEventTapCreate(..) and add it to the runloop everything works as expected. However, after some time (I don't know what triggers this) the event tap doesn't receive events anymore, until I manually call CGEventTapEnable(..) again. Any clues what could cause this

Re: receiving events

2010-01-11 Thread Oftenwrong Soong
Hi Ariel, I'm afraid it's a bit difficult to understand your question. Are you attempting to insert a full-screen view into the responder chain? Thanks, Soong - Original Message From: Ariel Feinerman To: Cocoa Development Sent: Mon, December 7, 2009 12:17:57 PM Subject:

receiving events

2009-12-07 Thread Ariel Feinerman
Hi, in Apple`s reference library, examples the event stream looks like following: NSApplication -> NSWindow -> NSView / custom View / OpenGLView or any NSResponder-inherited class; If a display is captured (for OpenGL) does view receive any events or not? if not and if app for example works in full

Re: NSPanel not receiving events.

2008-08-14 Thread Graham Cox
On 15 Aug 2008, at 8:42 am, David Springer wrote: Well, no it isn't. What I want to do is put up this panel (the button is "Cancel") then go off and do a lengthy http request. This all has to look like a synchronous operation to the calling code (legacy reasons). So I do have a reason to wan

Re: NSPanel not receiving events.

2008-08-14 Thread David Springer
On Thu, Aug 14, 2008 at 4:32 PM, Kyle Sluder <[EMAIL PROTECTED]> wrote: > On Thu, Aug 14, 2008 at 6:25 PM, David Springer <[EMAIL PROTECTED]> wrote: >> Seems like I am missing some rudimentary thing relative to the event >> loop here. But what? Help? > > Why would you do this? The run loop is al

Re: NSPanel not receiving events.

2008-08-14 Thread Kyle Sluder
On Thu, Aug 14, 2008 at 6:25 PM, David Springer <[EMAIL PROTECTED]> wrote: > Seems like I am missing some rudimentary thing relative to the event > loop here. But what? Help? Why would you do this? The run loop is already running. --Kyle Sluder ___

NSPanel not receiving events.

2008-08-14 Thread David Springer
Folks, I have an NSPanel (not modal), with one button on it. If I instantiate this panel and let the normal app loop run, everything works fine: clicking the button sends a message to the appropriate object. However, if I try to instantiate this panel, then run [NSRunLoop currentRunLoop] myself