Hello Everyone
I am using following code for the Alert this code works fine in Leopard But in snow Leopard application crashes after showing alert
I have also tried to use sheet here, but same thing happens If I comment the alert code then application works fine
Please suggest me if anything wrong in my code, or any alternative way
Thanks
Amit Battan
I am using following code for the Alert this code works fine in Leopard But in snow Leopard application crashes after showing alert
Code:
alert = [[[NSAlert alloc] init] autorelease];
[alert addButtonWithTitle:@"OK"];
[alert setMessageText:@"Updated Successfully!"];
[alert setAlertStyle:NSWarningAlertStyle];
[alert beginSheetModalForWindow:mainWindow modalDelegate:self didEndSelector:@selector(alertDidEnd4:returnCode4:contextInfo4:) contextInfo:nil];
- (void)alertDidEnd4:(NSAlert *)alert returnCode4:(int)returnCode contextInfo4:(void *)contextInfo{
}
I have also tried to use sheet here, but same thing happens If I comment the alert code then application works fine
Please suggest me if anything wrong in my code, or any alternative way
Thanks
Amit Battan