• Announcements

    • Shane D.

      Evernote Business Beta - Spaces   12/20/2017

      We're very excited to announce the public beta of an upcoming rework for Evernote Business! To learn more, go Here
    • Shane D.

      2018 Evernote Webinars   01/04/2018

      To kick off the new year, we're excited to announce our  updated schedule for our series of webinars! Please check the events calendar to see which one works best for you!
    • Shane D.

      Upcoming Forum Change Announcement   02/14/2018

      Hi All! You may be seeing some changes with overall organization and layout of the discussion forums. You can learn more by going to the 'Upcoming Forum Change Announcement' in the 'Community Announcements' sub-forum!  
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