Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Navigation services' QuitEventLoop disturbs my event loop



At 14:34 -0700 6/30/06, Bryan Prusha wrote:
What modality are you running your save dialog in? Hmm... QuitEventLoop is called on the current event loop in all cases anyway so this may be a bug.

Hi Bryan,

I haven't done anything with the modality so it should run app modal.

The following work arounds the problem when called right after NavDialogRun:

void QuitEventLoopBugWorkAround()
{
    //----------------------------------------
    //  Patch to ignore QuitEventLoop issued
    //  by something in Navigation Services!
    //----------------------------------------

    EventRef                    dummyEvent = NULL;

    if( eventLoopQuitErr  ==  ReceiveNextEvent(  0,
                                                 NULL,
                                                 kEventDurationMillisecond,
                                                 FALSE,
                                                 &dummyEvent
                                              )
    )
    {
        dummyEvent = NULL;

(void) ReceiveNextEvent( 0,
NULL,
kEventDurationMillisecond,
TRUE,
&dummyEvent );
if( dummyEvent )
ReleaseEvent( dummyEvent );
}
}


Tomas



On Jun 30, 2006, at 1:21 PM, Tomas Zahradnicky wrote:

Dear Carbon Developers,

I've found a strange behavior in my app and it seems to be caused by Navigation Services.

My app's using a custom run loop with ReceiveNextEvent and receives eventLoopQuitErr message when the put file Navigation Services dialog gets dismissed.

  #0  0x93252e50 in QuitEventLoop ()
  #1  0x9316b730 in __NavDialog::TerminateWithUserAction ()

Is this a bug in Navigation services that it allows its own quit to propagate? The put file navigation dialog is shown with a NavDialogRun call.

Cheers,

  Tomas
--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden


--
# Ing. Tomas Zahradnicky, Jr.
# The Czech Technical University
# Dept of Computer Science, FEE-CTU Prague
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >Navigation services' QuitEventLoop disturbs my event loop (From: Tomas Zahradnicky <email@hidden>)
 >Re: Navigation services' QuitEventLoop disturbs my event loop (From: Bryan Prusha <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.