public void showAsSheetForWindow(NSWindow parentWindow) { this.updateData(true); NSApp.beginSheet(this.window) modalForWindow(parentWindow) modalDelegate(this) didEndSelector(__selector(didEndSheet: returnCode: contextInfo:)) contextInfo(null); }
private void didEndSheet(NSWindow sheet) returnCode(int returnCode) contextInfo(id info) { if (returnCode == 1) { this.updateData(false); [email protected](this.TaskToEdit); } else { this.updateData(true); [email protected](this.TaskToEdit); } this.window.orderOut(this.window); NSApp.stopModal(); }
public void cancelAction(id sender) { this.window.makeFirstResponder(this.window); NSApp.endSheet(this.window) returnCode(NSModalResponseCancel); }
public void applyAction(id sender) { this.window.makeFirstResponder(this.window); NSApp.endSheet(this.window) returnCode(NSModalResponseOK); }