[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Cause of flickering title in load/save dialogs
From: |
Serg Stoyan |
Subject: |
Re: Cause of flickering title in load/save dialogs |
Date: |
Fri, 14 Jan 2005 02:14:21 +0200 |
Hello Adrian,
> I've noticed and others have posted that the window title flickers for
> load and save dialogs (NSOpenPanel and NSSavePanel). I found this is
> caused by a call to [theSession->window orderFrontRegardless] in
> [NSApplication -runModalSession:], which itself is called repeatedly
> in a loop in [NSApplication -runModalForWindow:], once call per mouse
> movement event. Commenting this line out fixes the problem and seems
> to cause no ill effects (in limited testing).
I've tried it too. All works correct without annoying flickering.
> There are a couple of other calls in runModalSession which seem
> questionable:
>
> 1) calls to -makeKeyWindow or -makeMainWindow (why can't these be done
> just once in -beginModalSessionForWindow: ?)
I've just looked into latest CVS and see that it already there...
> 2) calls to updateServicesMenu and mainMenu update (if the given
> window is modally selected can the user even interact with the menus?
> why not call this once in -endModalSession:?)
Anyway, menu does not accept mouse clicks in modal session. And
as I've already said - everything works ok.
> Anyway, I'd like to at least move the -orderFrontRegardless: call to
> -beginModelSessionForWindow:, although not even this seems necessary
Already there.
> at least on my particular system. On the other hand, maybe all this
> code is correct and something else is not working as expected -- e.g.
> the calling of -runModalSession: on every mouse movement sounds fishy.
> Thoughts?
I guess there is no special needs to that continous actions.
--
Serg Stoyan