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