Logo Search packages:      
Sourcecode: wcalc version File versions  Download package

ErrorController.m

#include "ErrorController.h"
#ifdef MEMWATCH
#include "memwatch.h"
#endif

@implementation ErrorController

- (IBAction)closeAlert:(id)sender
{
      [errorMessage setString:@""];
      [errorDialog close];
}

- (IBAction)showAlert:(id)sender
{
      [errorDialog makeKeyAndOrderFront:self];
      [errorDialog center];
}

- (IBAction)throwAlert:(NSString *)message
{
      [errorDialog makeKeyAndOrderFront:self];
      [errorDialog center];
      [errorMessage setEditable:true];
      [errorMessage insertText:message];
      [errorMessage insertText:@"\n"];
      [errorMessage setEditable:false];
      NSBeep();
}
@end

Generated by  Doxygen 1.6.0   Back to index