1 #import "alertdelegate.h"
3 @implementation AlertDelegate
5 - (void)DisplayAlert:(NSString *)text
7 /* Open alert view first */
8 UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"AROS GURU meditation" message:text delegate:self
9 cancelButtonTitle:@"Abort" otherButtonTitles:nil];
13 * Enter run loop in order to process events from the alert view
14 * TODO: we want to be able to return when the alert is dismissed
16 NSRunLoop *rl = [NSRunLoop mainRunLoop];
22 - (void)alertView:(UIAlertView *)av didDismissWithButtonIndex:(NSInteger)choice
24 /* TODO: Break run loop here */