• Announcements

    • Shane D.

      Announcing 'Spaces' for Evernote Business!   02/27/2018

      Hi All, We're very excited to announce the launch of Spaces for Evernote Business! I invite you to find more details and learn more in our most recent Community Announcement! 
    • Shane D.

      Code of Conduct   03/26/2018

      Hi All, The updated version of the Code of Conduct has been implemented, and you will need to accept those terms before proceeding. If you would like to review the Code of Conduct, you can do so Here
    • Shane D.

      Update to Evernote Subscription Plans   04/12/2018

      Hi All, We've made some updates to our Evernote subscription plans. To learn more, please see the 'Update to Evernote Subscription Plans' thread in the Community Announcements forum, or you can go here.
Jean-Nicolas

KVO binding for EvernoteNote (notebook.name)

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:

 

title

notebook.name

 

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