Documented GVF_SAVE_VAR alongside other flags, and removed a query/doubt
[AROS.git] / arch / all-ios / hidd / uikit / alertdelegate.m
blob28b3a6c6b14d37012e6c8bc85f164c0b6d7c301d
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];
10     [alert show];
12     /* 
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
15      */
16     NSRunLoop *rl = [NSRunLoop mainRunLoop];
17     [rl run];
19     [alert release];
22 - (void)alertView:(UIAlertView *)av didDismissWithButtonIndex:(NSInteger)choice
24     /* TODO: Break run loop here */
25     exit(0);
28 @end