called when we fail to connect to a RDP server - Make sure this is called from the main thread.
189 :(NSString *)withMessage
190{
191 mfContext *mfc;
192 MRDPView *view;
193 mfc = (mfContext *)context;
194 view = (MRDPView *)mfc->view;
195 [view exitFullScreenModeWithOptions:nil];
196 NSString *message = withMessage ? withMessage : @"Error connecting to server";
197 NSAlert *alert = [[NSAlert alloc] init];
198 [alert setMessageText:message];
199 [alert beginSheetModalForWindow:[self window]
200 modalDelegate:self
201 didEndSelector:@selector(alertDidEnd:returnCode:contextInfo:)
202 contextInfo:nil];
203}