• 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: KVO persists too long
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KVO persists too long


  • Subject: Re: KVO persists too long
  • From: "Jim Thomason" <email@hidden>
  • Date: Sat, 30 Jun 2007 22:12:27 -0500


Assume, because life is that way, that this was caused by something in your control, like overreleasing an object.


Well, yeah, a reasonable assumption, but....

I'm not retaining it. Nor am I allocating it, copying it, or otherwise know
anything about its existence. As best as I can tell it's something in the UI
that's adding itself as an observer and then failing to remove itself. For
sake of argument, NSZombieEnabled confirmed:

2007-06-30 21:22:29.843 Debtinator[12459] *** Selector
'observeValueForKeyPath:ofObject:change:context:' sent to dealloced instance
0x5238640 of class NSKeyValueObservationForwarder. Incidentally, I'm not
quite sure where that class comes from, since the actual object returned by
observationInfo is:

<NSKeyValueObservance: Observer: 0x5238640, Key path: apr, Include old: NO,
Include new: NO, Context: 0x4903d0, Property: 0x5241620>

And its observer property (valueForKey:@"observer") returns the NSTableView
that is the detailed view. So it's this wrapper object that appears from
somewhere apparently to forward on the KVO note to the table that's
vanishing.

I haven't got a clue how to even create an instance of either of those
classes or when I would (if it ain't in appkido, I normally don't look into
it).

So sure, I'm freely acknowledging that it's probably something within my
control, but it seems like it's something a few levels removed from where
I'm currently looking, and that's where I'm having trouble bridging the gap.
How do I get from this to whatever it is in my code that's presumably
causing the problem?

Breaking on [NSKeyValueObservance release] and
[NSKeyValueObservationForwarder release] haven't seemed to yield anything
useful.

-Jim...
_______________________________________________

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


References: 
 >KVO persists too long (From: "Jim Thomason" <email@hidden>)
 >Re: KVO persists too long (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Creating drag images from NSView snapshots
  • Next by Date: Re: NSImageView blurring bug
  • Previous by thread: Re: KVO persists too long
  • Next by thread: refresh of tableColumn headerView not working
  • Index(es):
    • Date
    • Thread