Re: Task problem somewhat solved
Re: Task problem somewhat solved
- Subject: Re: Task problem somewhat solved
- From: Jeff Harrell <email@hidden>
- Date: Mon, 23 Jun 2003 15:08:21 -0500
It's a modal issue. You should generally try to avoid modal dialogs
like NSAlertPanel unless you really want to lock up the whole
application until the user dismisses the dialog. An application in a
modal event loop can't be hidden, for example. So think of a modal
alert as being the UI equivalent of grabbing your user by the lapels
and yelling, "DEAL WITH ME NOW!!"
Sheets, on the other hand, are much more polite. They're
document-modal, not application modal, which means the user can
continue to do other things.
The most deferential of all, of course, is the non-modal attention
panel. You can construct one of these in Interface Builder, then just
open it like any other window.
On Monday, June 23, 2003, at 02:02 PM, Chad Armstrong wrote:
I somewhat figured out my problem when using a task and waitUntilExit.
When the task finished, a notification was called, and the function
had an NSAlertPanel in it. When I got rid of the NSAlertPanel it ran
fine and didn't lock up the rest of the program this time. Any idea
why this happened? Is it safe to have a progress meter at least?
Chad Armstrong
email@hidden
_______________________________________________
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.
--
email@hidden
http://homepage.mac.com/jharrell
_______________________________________________
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.