How does one break on _NSKVODeallocateLog?

  • One of my objects is observing my NSWindowController subclass.
    Running in "Debug" mode, when the controller closes I see this
    message:

    ...  An instance 0x494a90 of class IVWindowController is being
    deallocated while key value observers are still registered with it.
    Break on _NSKVODeallocateLog to start debugging.

    So I tried a a breakpoint on "_NSKVODeallocateLog", and one on
    "[NSWindowController _NSKVODeallocateLog]", but neither worked.

    I googled "_NSKVODeallocateLog" and got a few hits, one of which was
    an earlier post here for info on this breakpoint.

    Sure would be nice if someone could respond to this (for the
    archives) and tell the world how one does in fact break on this error.

    Thanks!

    David

    PS: I tracked down the problem so this is purely for future reference.
  • If you can reproduce the problem on demand, try setting breakpoints
    on printf, fprintf, and NSLog, then get the error to occur. Most
    likely you will get a full stack trace, including the full name of
    the function in question.

    On Sep 6, 2007, at 10:34 AM, David Hoerl wrote:

    > One of my objects is observing my NSWindowController subclass.
    > Running in "Debug" mode, when the controller closes I see this
    > message:
    >
    > ...  An instance 0x494a90 of class IVWindowController is being
    > deallocated while key value observers are still registered with it.
    > Break on _NSKVODeallocateLog to start debugging.
    >
    > So I tried a a breakpoint on "_NSKVODeallocateLog", and one on
    > "[NSWindowController _NSKVODeallocateLog]", but neither worked.
    >
    > I googled "_NSKVODeallocateLog" and got a few hits, one of which
    > was an earlier post here for info on this breakpoint.
    >
    > Sure would be nice if someone could respond to this (for the
    > archives) and tell the world how one does in fact break on this error.
    >
    > Thanks!
    >
    > David
    >
    > PS: I tracked down the problem so this is purely for future reference.
  • On 9/6/07, David Hoerl <dhoerl...> wrote:
    > One of my objects is observing my NSWindowController subclass.
    > Running in "Debug" mode, when the controller closes I see this
    > message:
    >
    > ...  An instance 0x494a90 of class IVWindowController is being
    > deallocated while key value observers are still registered with it.
    > Break on _NSKVODeallocateLog to start debugging.
    >
    > So I tried a a breakpoint on "_NSKVODeallocateLog", and one on
    > "[NSWindowController _NSKVODeallocateLog]", but neither worked.
    >
    > I googled "_NSKVODeallocateLog" and got a few hits, one of which was
    > an earlier post here for info on this breakpoint.

    _NSKVODeallocateLog appears to be a funciton and part of Foundation.

    -Shawn
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today