Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/JSTExtras.m
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,17 @@ - (void)activate {
SetFrontProcess( &xpsn );
}


- (NSInteger) displayDialog:(NSString*)msg withTitle:(NSString*)title withOK:(NSString*)oktxt withNOK:(NSString*)noktxt {

NSAlert *alert = [NSAlert alertWithMessageText:title defaultButton:oktxt alternateButton:noktxt otherButton:nil informativeTextWithFormat:@"%@", msg];

NSInteger button = [alert runModal];

return button;
}


- (NSInteger)displayDialog:(NSString*)msg withTitle:(NSString*) title {

NSAlert *alert = [NSAlert alertWithMessageText:title defaultButton:nil alternateButton:nil otherButton:nil informativeTextWithFormat:@"%@", msg];
Expand Down