pegkit
pegkit copied to clipboard
Maintain Undo History after save or generate
This is a fix for issue #52
- Removes the
grammar
<->NSTextView KVO. - Gets rid of enable/disable state for
textView
since it breaks undo history and I don't think it actually adds any value. - Now uses
[self.textView string]
as the authoritative state of the NSTextView (grammar).
After this change undo history is maintained after generate
or File
->Save
.
FYI, FIxed a problem where loading the saved file did not work. I've been using this for several days not and seems to be working really well.