Is it possible to create a fully customized alert? I\'m doing it with custom sheets now, but I\'d like to have the feature that the sheet is blocking (like -[NSAlert r
I looked around a bit, and found this piece of code :
NSModalSession session = [NSApp beginModalSessionForWindow:sheetWindow];
for (;;) {
if ([NSApp runModalSession:session] != NSRunContinuesResponse)
break;
}
[NSApp endModalSession:session];
I call
[NSApp stopModal]
to end the session. Now my code is way cleaner :)