Re: Modal-loop Event-handling question

2012-05-01 Thread Jens Alfke
On May 1, 2012, at 12:30 PM, Motti Shneor wrote: > To avoid the crash, we tried to defer the "endSheet" via > "performSelecor:@selector(closeAnyOpenSheet) afterDelay:0.0". This prevents > the releasing of the dialog before the "mouseUp" event is received. However, > when "mouseUp" event comes

Re: Modal-loop Event-handling question

2012-05-01 Thread Motti Shneor
Thanks Jens, for your enlightening comments. On 30/04/2012, at 20:55, Jens Alfke wrote: > > On Apr 30, 2012, at 1:24 AM, Motti Shneor wrote: > >> In our client-server app we sometimes present modal sheets on our main >> window. Following server notifications we sometimes have to dismiss these

Re: Modal-loop Event-handling question

2012-04-30 Thread Jens Alfke
On Apr 30, 2012, at 1:24 AM, Motti Shneor wrote: > In our client-server app we sometimes present modal sheets on our main > window. Following server notifications we sometimes have to dismiss these > sheets (user is expelled, or otherwise status-changed). To me, dismissing a sheet without any

Modal-loop Event-handling question

2012-04-30 Thread Motti Shneor
Hi all. In our client-server app we sometimes present modal sheets on our main window. Following server notifications we sometimes have to dismiss these sheets (user is expelled, or otherwise status-changed). We do this using the [mainWindow attachedSheet] endSheet]; However, If we do this whi