get 'modified' indicator working on document windows again (fixes #2194)

This commit is contained in:
Ben Fry
2014-07-30 22:13:40 -04:00
parent aec46f25cf
commit d2c28b78b0
2 changed files with 4 additions and 1 deletions

View File

@@ -749,7 +749,8 @@ public class Sketch {
if (Base.isMacOS()) {
// http://developer.apple.com/qa/qa2001/qa1146.html
Object modifiedParam = modified ? Boolean.TRUE : Boolean.FALSE;
editor.getRootPane().putClientProperty("windowModified", modifiedParam);
// https://developer.apple.com/library/mac/technotes/tn2007/tn2196.html#WINDOW_DOCUMENTMODIFIED
editor.getRootPane().putClientProperty("Window.documentModified", modifiedParam);
}
}

View File

@@ -37,6 +37,8 @@ o check on why 2x core.jar inside the Java folder
o maybe OS X Java can't look in subfolders? (just auto-adds things)
o https://github.com/processing/processing/issues/2344
X one is used by the PDE, the other is used as a library
X get 'modified' indicator working on document windows again
X https://github.com/processing/processing/issues/2194
_ changing the mode on an untitled, unmodified sketch removes untitled status
_ when renaming a tab, include the previous name to be edited