• 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
NSAlert synchronous sheet?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAlert synchronous sheet?


  • Subject: NSAlert synchronous sheet?
  • From: Hamish Allan <email@hidden>
  • Date: Tue, 22 Mar 2005 23:26:27 +0000

Hi,

NSAlert seems to provide two ways to run:

– runModal, for blocking application-modal dialogs, or
– beginSheetModalForWindow:modalDelegate:didEndSelector:contextInfo:, for non-blocking document-modal sheets.


I want a blocking document-modal sheet, for an "Are you sure" type of question in response to a windowShouldClose:, but I can see that this would tie up the run loop and prevent other document windows from functioning. However, it's not clear to me how to implement this asychronously. Can anybody point me in the right direction?

Thanks,
Hamish

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSAlert synchronous sheet?
      • From: Hamish Allan <email@hidden>
  • Prev by Date: Re: loop efficiency & messages
  • Next by Date: Re: loop efficiency & messages
  • Previous by thread: Re: Color of link in NSAttributedString
  • Next by thread: Re: NSAlert synchronous sheet?
  • Index(es):
    • Date
    • Thread