Skip navigation.
 
mlRe: With What does Apple Swizzle the IsA-pointer in KVO?
FROM : Clark Cox
DATE : Fri Nov 23 20:26:08 2007

On Nov 23, 2007 10:09 AM, Philip Mötteli <Philip.<email_removed>> wrote:
> Am 23.11.2007 um 17:23 schrieb Jean-Daniel Dupas:
>
> > Le 23 nov. 07 à 17:03, Philip Mötteli a écrit :
> >> Am 23.11.2007 um 15:54 schrieb Clark Cox:
> >>
> >>> On Nov 23, 2007 5:42 AM, Philip Mötteli <Philip.<email_removed>>
> >>> wrote:
> >>>>
> > >>> 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?
> > >
> > >
> > >> Perhaps I could provide more help if you
> > >> stated why it is that you think that you need to know this.
> > >
> > > I need to know, when an object has changed and I would prefer to
> > > reuse as much as possible, of what KVO already offers.
> > > Unfortunately, KVO is based on the internals of an object
> >
> > KVO is not based on the internals of an object (which is assumed to
> > be hidden), and it does not access hiddden internals. KVO is based
> > on KVC and uses accessors.
>
> In order to use KVO, you need to know this famous "key". The key is
> the name of an instance variable,


Not true, the key is the name of a property of the class. If the class
implements -key and setKey:, then KVC will never directly touch a
"key" instance variable (in fact such a variable need not exist).



--
Clark S. Cox III
<email_removed>

Related mailsAuthorDate
mlWith What does Apple Swizzle the IsA-pointer in KVO? Philip Mötteli Nov 23, 14:42
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Jean-Daniel Dupas Nov 23, 14:56
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Clark Cox Nov 23, 15:54
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Philip Mötteli Nov 23, 17:03
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Jean-Daniel Dupas Nov 23, 17:23
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Paul Sargent Nov 23, 17:50
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Clark Cox Nov 23, 18:05
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Philip Mötteli Nov 23, 19:09
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Philip Mötteli Nov 23, 19:09
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Sherm Pendley Nov 23, 19:09
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? mmalc crawford Nov 23, 19:25
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? glenn andreas Nov 23, 19:29
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Philip Mötteli Nov 23, 19:33
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Sherm Pendley Nov 23, 20:01
mlRe: With What does Apple Swizzle the IsA-pointer in KVO? Clark Cox Nov 23, 20:26