bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindow question


From: Richard Frith-Macdonald
Subject: Re: NSWindow question
Date: Mon, 21 Jul 2003 12:30:11 +0100


On Monday, July 21, 2003, at 11:02 AM, Andrew Ruder wrote:

Just wondering if someone who was familiar with NSWindow would
know if the window could possibly be deallocated between a
NSLeftMouseButtonDown and a NSLeftMouseButtonUp or a
start of a dragging operation and the end of one.  In either case
it should be safe to apply this patch, just in case.

Thanks
--
Andrew Ruder
<NSWindow.m.diff>

I think it's theoretically possible (the window is not specially retained during event processing to prevent it) since, for instance, a keyboard event to close the window could arrive, and that could cause the window to be destroyed.

Perhaps this patch is good anyway, and what's needed is for the event system to retain a window while it is processing an event. I'm not happy to apply the patch straight away though ... perhaps someone else has some thoughts?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]