KVO binding for EvernoteNote (

Recommended Posts

I'm using a array of notes to display on a NSTableview (Mac OS X 10.8 with Evernote 5.0.5), using ScriptingBridge Framework. The Array of notes (allNotes) are bound to a ArrayController and in the table two columns with the following bindings to the array controller:




The table is displayed correctly but Xcode logs the following warning:



2013-02-18 17:16:44.729 TableViewSimple[16575:303] An instance 0x100597280 of class EvernoteNotebook was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here's the current observation info:

<NSKeyValueObservationInfo 0x10053c8e0> (

<NSKeyValueObservance 0x100597d90: Observer: 0x100596d80, Key path: name, Options: <New: NO, Old: NO, Prior: NO> Context: 0x0, Property: 0x10053c940>


Any idea to avoid this warning?
Here the code to instantiate the notes array:

allNotes = [[NSMutableArray alloc] init]; 

EvernoteApplication *evernote = [SBApplication applicationWithBundleIdentifier:@"com.evernote.evernote"];

[self    setAllNotes:[NSMutableArray arrayWithArray:[evernote findNotes:@"notebook:Test"]]];

allNotes is the array bound to my array controller.





Share this post

Link to post