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

Popular posts from this blog

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -

javascript - jQuery: Add class depending on URL in the best way -