Add binding for NSWindow::isDocumentEdited()
Getter for the existing setDocumentEdited() binding. I've tested both via an in-progress change to tauri-apps/tao
This commit is contained in:
@@ -1087,6 +1087,7 @@ pub trait NSWindow: Sized {
|
||||
unsafe fn convertRectFromScreen_(self, rect: NSRect) -> NSRect;
|
||||
|
||||
// Accessing Edited Status
|
||||
unsafe fn isDocumentEdited(self) -> BOOL;
|
||||
unsafe fn setDocumentEdited_(self, documentEdited: BOOL);
|
||||
|
||||
// Managing Titles
|
||||
@@ -1670,6 +1671,10 @@ impl NSWindow for id {
|
||||
|
||||
// Accessing Edited Status
|
||||
|
||||
unsafe fn isDocumentEdited(self) -> BOOL {
|
||||
msg_send![self, isDocumentEdited]
|
||||
}
|
||||
|
||||
unsafe fn setDocumentEdited_(self, documentEdited: BOOL) {
|
||||
msg_send![self, setDocumentEdited:documentEdited]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user