Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.


KVO binding for EvernoteNote (notebook.name)

objective-c kvo evernotenote

  • Please log in to reply
No replies to this topic

#1 Jean-Nicolas


  • Pip
  • Title: Member
  • Group: Members
  • 4 posts

Posted 18 February 2013 - 04:29 PM

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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote