unresponsive button in panel
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.