I would like to be able to display an error message if one of my context menu actions fails.
I have tried doing something like this but it doesn't seem to work:
I have tried doing something like this but it doesn't seem to work:
Code Block - (IBAction)contextAction:(NSMenuItem *)sender { NSAlert *alert = [[NSAlert alloc]init]; [alert setMessageText:@"A dialog"]; [alert setInformativeText:@"A message"]; [alert setAlertStyle:NSWarningAlertStyle]; [alert runModal]; [myFinderSync performMenuItemAction:(uint32_t)sender.tag]; }