• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
KVO unregistering, document-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

KVO unregistering, document-based app


  • Subject: KVO unregistering, document-based app
  • From: Raphael Sebbe <email@hidden>
  • Date: Tue, 23 Dec 2003 13:12:37 +0100

Hi all,

My application is a document-based app and several NSController are set up for binding.

"Global controllers" (I mean, shared across documents, yet depending on the document being edited) are bound to Shared Application.mainWindow.document, other controllers are directly bound to the document.

When I quit the app, I get this:

2003-12-23 13:00:22.854 XXXXXXXXXXX[1148] An instance 0x652910 of class MyDocument is being deallocated while key value observers are still registered with it. Break on _NSKVODeallocateLog to start debugging.

Is there a way to unregister all the controllers relating to a document at one time ? Or do I have to keep around an IBOutlet to every controller in every NIB and do it manually ?

Many thanks,

Raphael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Format a string
  • Next by Date: newbie questions
  • Previous by thread: Re: Format a string
  • Next by thread: newbie questions
  • Index(es):
    • Date
    • Thread