• 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
Re: Who is responsible for removing observers in longer key paths [solved]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Who is responsible for removing observers in longer key paths [solved]


  • Subject: Re: Who is responsible for removing observers in longer key paths [solved]
  • From: Per Bull Holmen <email@hidden>
  • Date: Fri, 02 Mar 2012 01:11:06 +0100

Den 22:58 1. mars 2012 skrev Quincey Morris
<email@hidden> følgende:

> You can *try* dealloc voodoo, but I think it's crucial to look at the
> observerInfo in the debugger. And, the number of remaining observers may be
> more informative than what they are.

Hi

Sorry it took a little while to get back to you. It turns out, once I
changed the superclass of my controller to NSObject instead of
NSController, the problem was solved. You couldn't possibly have
figured that out. NSController inherits from NSObject, but clearly
some of the behaviour regarding registering and managing key-value
observers is overridden. The only thing Apple docs says about the
class is that it implements the <NSEditorRegistration> protocol, which
I thought might be a benfit, but clearly it does something more too.
Something which belongs to the Mysteriously Unknown and that I
probably don't need.

Thanks.... :)

Per

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Prev by Date: Re: Suggestions for forcing NSSlider to some values, without tickmarks
  • Next by Date: Re: Suggestions for forcing NSSlider to some values, without tickmarks
  • Previous by thread: Re: How are views supposed to reload after being nillified by memory warnings?
  • Next by thread: Core Data NSFetchRequest with predicate
  • Index(es):
    • Date
    • Thread