• 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
unresponsive button in panel
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unresponsive button in panel


  • Subject: unresponsive button in panel
  • From: "Brad Peterson" <email@hidden>
  • Date: Sun, 20 Jul 2003 18:37:28 +0000

Hi all,

I've got an app which does several file copy operations. In order to display progress, a panel appears
during each batch of copying operations. On that panel is a progress bar and a cancel button.

My problem is that the cancel button is entirely unresponsive -- no matter how often I click it, as long as the app is in the middle of copying a set of files, I'm stuck waiting.

I suspect this has to do with the fact that I'm doing this all in the same thread, but I don't have a lot of choice there... I need everything to happen synchronously (that is, in a specific order with each piece waiting until the other is done) so that's intentional.

But, perhaps there's some way to give my little cancel button a higher priority or some such thing?

This is the code it calls:

- (IBAction)cancelSync:(id)sender{
shouldCancel = YES;
[synchSheet orderOut:nil];
[NSApp endSheet:synchSheet];
}

As you can see, there's not much to it. The method responsible for the file copying checks the state of the shouldSync flag before each new copy.

Any thoughts or suggestions would be greatly appreciated.

Thank you!

Brad

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/virus
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
  • Follow-Ups:
    • Re: unresponsive button in panel
      • From: "M. Uli Kusterer" <email@hidden>
  • Prev by Date: Breaking on NSAssert() ???
  • Next by Date: Re: Songs at WWDC 2003
  • Previous by thread: Breaking on NSAssert() ???
  • Next by thread: Re: unresponsive button in panel
  • Index(es):
    • Date
    • Thread