NSAlert synchronous sheet?
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