Re: how to wrap an NSAlert so the caller can call one function and get the NSAlert return value (i.e. modal)
Re: how to wrap an NSAlert so the caller can call one function and get the NSAlert return value (i.e. modal)
- Subject: Re: how to wrap an NSAlert so the caller can call one function and get the NSAlert return value (i.e. modal)
- From: Ken Thomases <email@hidden>
- Date: Mon, 12 May 2008 19:36:03 -0500
On May 12, 2008, at 7:18 PM, Rua Haszard Morris wrote:
Is there a way to wrap up an NSAlert, the beginSheetModalForWindow
call, and the alertDidEnd implementation, such that a caller can
just call one function which blocks until the alert is dismissed?
NSAlert has the -runModal method. However, that makes the alert
application-modal rather than window-modal. It's not a sheet, and
the application can't be used for anything else until the alert is
dismissed.
For the vast majority of applications this is the wrong user
experience. However, for certain rare kinds of applications it's
appropriate.
Cheers,
Ken
_______________________________________________
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