I have a NSAlert in XCode5
NSAlert *alert = [[NSAlert alloc] init];
[alert setMessageText:@"Notificación"];
[alert setInformativeText:mensaje];
[alert setAlertStyle:NSInformationalAlertStyle];
[alert beginSheetModalForWindow:window modalDelegate:nil
didEndSelector:@selector(myMethod})
contextInfo:nil];
as you see on didEndSelector I have a section for adding a method, is it possible to create there inside a custom method for making just an action, for instance something like this
[alert beginSheetModalForWindow:window modalDelegate:nil
didEndSelector:@selector(myCustomMethod{NSLog(@"hola");})
contextInfo:nil];
this is for saving the time of adding tons of methods one for each NSAlert
thanks in advance for the support