Re: Problem in simulating the events
Re: Problem in simulating the events
- Subject: Re: Problem in simulating the events
- From: "Gurmit Teotia" <email@hidden>
- Date: Mon, 19 Jun 2006 20:01:38 +0530
I've further investigated this issue and came up with strange observations.
Our application is combination of flash and Cocoa. Using webkit we're
playing the swf file. Our flash application takes drawing data from centeral
server. As soon as I click on the menu of my application it seems to stops
execution. It doesn't update the its screen with new data from centeral
server, and as soon as I dispose the menu it starts taking the data from
server and update the screen. This behaviour is not limited to drawing
operations, log messages are also not displayed. Same flash application is
also responsible to send the event data to my other event simulating
application over a socket, so it doesn't send the event data to my
application when menus are pops up. Above behaviour has confused me to
believe that something is wrong with my event handling application...but
it was in actual because of Cocoa/Flash application behaviour.
Can someone please give me someidea about the above behaviour? Is this the
correct behaviour of Cocoa application? Or Flash application is responsible
for it.
I'd appreciate if someone can help in resolving the above issue, it has
already eaten my lots of days.
With regards,
Gurmit
On 6/17/06, Gurmit Teotia <email@hidden> wrote:
Hi All,
I've created a server type application in Cocoa to simulate the events. It
receive the events from other client. I've created the two threads in this
application: one thread read the event data from socket and add it to buffer
while other thread take data from this buffer and simulate the events using
CGPostKeyboardEvent and CGPostMouseEvent.
As soon as I click on the menu of my server application from client
computer above both threads seems to stops running as no log message and no
events is simulated. If I dispose the menu on server machine by clicking
somewhere then all the pending events are simulated. This problem only
happens with the menus of my server application, I can easily click on the
menus of other application without any problem.
One more intersting point here is that the timestamp of log messages which
appear after disposing of menu are continuous. These messages don't show any
time gap....(duration for which application is not simulating the events..)
Please help me in this issue, I'm not finding a way to get out from it.
Regards,
Gurmit
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden