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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -