• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Showing progress in a sheet
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Showing progress in a sheet


  • Subject: Re: Showing progress in a sheet
  • From: David Feldman <email@hidden>
  • Date: Wed, 30 Jan 2002 03:22:56 -0500

Hmm. It would appear that autoenablesItems is set to NO, which is why
validateMenuItem: isn't getting called. Weird since I haven't messed with
the menus' settings. Problem is, for some reason all the options for all my
NSMenu objects are grayed out in Interface Builder. No idea why. Any ideas?
I guess if I have to I can do it programmatically but it's messy.

--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


References: 
 >Re: Showing progress in a sheet (From: Brian Webster <email@hidden>)

  • Prev by Date: Re: Showing progress in a sheet
  • Next by Date: Re: class design issue
  • Previous by thread: Re: Showing progress in a sheet
  • Next by thread: Re: Two examples
  • Index(es):
    • Date
    • Thread