Re: Showing progress in a sheet
Re: Showing progress in a sheet
- Subject: Re: Showing progress in a sheet
- From: David Feldman <email@hidden>
- Date: Wed, 30 Jan 2002 03:05:47 -0500
Thanks for the advice...but I must be doing something wrong, because even
when I implement validateMenuItem: to return NO in all cases, nothing gets
grayed out in my menus, and there are at least a few items whose actions are
definitely methods in the object for which I implemented validateMenuItem:
Any thoughts?
--Dave
On 1/28/02 4:35 PM, "Brian Webster" <email@hidden> wrote:
>
On Monday, January 28, 2002, at 02:26 PM, cocoa-dev-
>
email@hidden wrote:
>
>
> Without any calls to modal methods, everything seems to work OK
>
> if I open
>
> the sheet and start the progress bar right before separating
>
> the thread, and
>
> close the sheet, order it out, and stop the progress bar at the
>
> end of the
>
> thread's main method. The problem is that the menus are still active.
>
>
Probably the simplest thing to do is to use the above method,
>
but while the process is going on, implement validateMenuItem:
>
on the appropriate target(s) to return NO. This way, they won't
>
be able to select the menu items while the process is running.
>
>
--
>
Brian Webster
>
email@hidden
>
http://homepage.mac.com/bwebster