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

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

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -