Re: Progress Sheet
Re: Progress Sheet
- Subject: Re: Progress Sheet
- From: Matt Neuburg <email@hidden>
- Date: Sat, 02 Apr 2005 08:23:22 -0800
On Fri, 1 Apr 2005 21:21:44 -0800 (PST), M M <email@hidden> said:
>Hello,
>
>I used a progress bar for the first time. I placed the
>progress bar in a progress sheet. I have successfully
>shown the progress sheet when there is processing in
>my application.
>
> However, while the progress sheet is on display,
>though the main window is modal, when the user tried
>to click the "Close" button or other controls in the
>main window, the events are queued and after the
>progress sheet disappears, the events will be executed
>(ex. the application will be closed since the user
>clicks the "Close" button).
>
>I was expecting that when the progress sheet is
>displayed, the main window will be inactive and all
>the controls are disabled. Is this an expected
>behavior? How do i make the main window disable while
>the progress sheet is displayed?
It isn't clear to me why the events to the window are not being rejected
rather than queued ("the main window is modal"???? what's up with that?),
but you can clear the queue with discardEventsMatchingMask:. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide
<http://www.amazon.com/exec/obidos/ASIN/0596005571/somethingsbymatt>
_______________________________________________
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