Re: Avoiding KVO in dealloc?
Re: Avoiding KVO in dealloc?
- Subject: Re: Avoiding KVO in dealloc?
- From: Kyle Sluder <email@hidden>
- Date: Mon, 3 Aug 2009 18:45:09 -0700
On Mon, Aug 3, 2009 at 6:32 PM, Kiel Gillard<email@hidden> wrote:
> When if I observe some property of Foo *bar at some point in time, KVO
> swizzles the isa to KVONotifying_Foo. Then, if I observe a different
> property of the same object at some other point in time, are you suggesting
> KVO swizzles the isa to KVONotifying_Foo2 which in turn "can often" break
> future KVO notifications?
No, I wasn't trying to imply anything about the actual behavior of
KVO-generated subclasses. I was referring to the fact that it doesn't
know about your implementation, and if you use accessors in your
-dealloc you might run afoul of the expected behavior of any subclass,
including those generated by KVO.
--Kyle Sluder
_______________________________________________
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