• 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: Avoiding KVO in dealloc?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Avoiding KVO in dealloc? (From: Todd Heberlein <email@hidden>)
 >Re: Avoiding KVO in dealloc? (From: Kyle Sluder <email@hidden>)
 >Re: Avoiding KVO in dealloc? (From: Kiel Gillard <email@hidden>)
 >Re: Avoiding KVO in dealloc? (From: Kyle Sluder <email@hidden>)
 >Re: Avoiding KVO in dealloc? (From: Kiel Gillard <email@hidden>)
 >Re: Avoiding KVO in dealloc? (From: Kyle Sluder <email@hidden>)
 >Re: Avoiding KVO in dealloc? (From: Kiel Gillard <email@hidden>)

  • Prev by Date: Re: Avoiding KVO in dealloc?
  • Next by Date: Re: text control for keyboard shortcut input?
  • Previous by thread: Re: Avoiding KVO in dealloc?
  • Next by thread: Re: Avoiding KVO in dealloc?
  • Index(es):
    • Date
    • Thread