Re: With What does Apple Swizzle the IsA-pointer in KVO?
Re: With What does Apple Swizzle the IsA-pointer in KVO?
- Subject: Re: With What does Apple Swizzle the IsA-pointer in KVO?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Fri, 23 Nov 2007 14:56:30 +0100
Le 23 nov. 07 à 14:42, Philip Mötteli a écrit :
Hi,
Apple says, that it uses IsA-swizzling as the underlying technology
to implement KVO.
What are/is the class(es), which replace the original class of the
observed object? Is it an NSProxy subclass? Different NSProxy
subclasses, depending on the observed object? Is it a direct
subclass of the observed object?
Thanks
Phil
With 10.4, I bet on dynamically generated class that are subclass of
NSObject (Foo is swizzled with something like NSKVONotifying_Foo and
the debugger says it is a direct subclass of NSObject). But in any
case, you should not rely on this, because it is an implementation
detail and it may change.
Jean-Daniel
_______________________________________________
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