• 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
Re: beginSheet, doesn't stop NSThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >beginSheet, doesn't stop NSThread (From: Micha Fuhrmann <email@hidden>)

  • Prev by Date: Re: Adding a new row to NSTableView dynamically using bindings
  • Next by Date: Comparing NSDictionary woes
  • Previous by thread: Re: beginSheet, doesn't stop NSThread
  • Next by thread: integer value in NSTableColumn
  • Index(es):
    • Date
    • Thread