0cccfddd34
Using the better code form preble's 7330a00242 for setDocumentEdited (Switched to Xcode 4)
7330a00242