Re: beginSheet, doesn't stop NSThread
Re: beginSheet, doesn't stop NSThread
- Subject: Re: beginSheet, doesn't stop NSThread
- From: Half Activist <email@hidden>
- Date: Thu, 19 Jul 2007 16:21:31 +0200
Hi Micha,
I don't really know how NSAlert and nsrunalert is implemented at
all, however, I've already had the same problem, well, hmm actually
this is not a problem,
The application doesn't stop until the sheet ends, so waht I did for
this purpose is creating a sheet controller class that handles
everything in direct relation
with the sheet presented to the user and this controller has a
public API I used somewhat like NSRunAlert, or runAlert...
Actually I did it several times since I remember one implementation
used threads, and an other one using the application run loop....
this is a bit messed up in my mind.
Hope it helps though.
Regards.
On Jul 19, 2007, at 4:01 PM, Micha Fuhrmann wrote:
Hi everyone,
I'm a bit stuck here, any help appreciated. I've got a NSThread
that runs a file copy process, in the process it needs to display
an Alert sheet asking for some user choices. On that sheet I need
to have 4 buttons and a check box. I cannot use NSRunAlertPanel
because I'm constrained to 3 buttons and no go for a check box. So
I'm loading a NIB with a panel and use "beginSheet", the problem is
the thread doesn't stop for the answer like with a NSRunAlertPanel.
Any suggestions?
Micha
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden