-(void)Fun_alert_ok {
    
    NSAlert *t_NSAlert=[[NSAlert alloc] init];
    [t_NSAlert addButtonWithTitle:@"How are you?"];
    [t_NSAlert setMessageText:@"How is your day?"];
    [t_NSAlert setInformativeText:@"Like it"];
    [t_NSAlert setAlertStyle:NSWarningAlertStyle];
    [t_NSAlert beginSheetModalForWindow:self.window
               modalDelegate:self
               didEndSelector:nil
                            contextInfo:nil];

}

By admin-powenko

Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com

Leave a Reply