Re: beginSheet, doesn't stop NSThread
Re: beginSheet, doesn't stop NSThread
- Subject: Re: beginSheet, doesn't stop NSThread
- From: Nir Soffer <email@hidden>
- Date: Mon, 23 Jul 2007 00:01:26 +0300
On Jul 19, 2007, at 17:01, Micha Fuhrmann wrote:
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.
NSAlert is not limited to 3 buttons:
"Buttons are placed starting near the right side of the alert
and going toward the left side (for left to right languages). The
first three buttons are identified positionally as
NSAlertFirstButtonReturn, NSAlertSecondButtonReturn,
NSAlertThirdButtonReturn in the return-code parameter evaluated by
the modal delegate. Subsequent buttons are identified as
NSAlertThirdButtonReturn +n, where n is an integer"
http://developer.apple.com/documentation/Cocoa/Reference/
ApplicationKit/Classes/NSAlert_Class/Reference/Reference.html
Best Regards,
Nir Soffer
_______________________________________________
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