objective c - Undo Manager has stopped working after binding NSTextView to NSArrayController programatically -
when bind nstextview nsarraycontroller in storyboard, undo works correctly nstextview loose focus each time when context saved. therefore, bound nstextview nsarraycontroller programatically:
[_notetextview bind: nsattributedstringbinding toobject: _notearraycontroller.selection withkeypath: @"notebyuser" options: (@{ nscontinuouslyupdatesvaluebindingoption : @yes, nsallowseditingmultiplevaluesselectionbindingoption : @yes, nsconditionallysetseditablebindingoption : @yes, nsraisesfornotapplicablekeysbindingoption : @yes })]; now, not loose focus on saving undo functionality stopped working nstextview, other views inside mainwindow bound nsarraycontroller in storyboard responds undo command correctly.
Comments
Post a Comment