On Thu, Jan 24, 2013, at 12:03 AM, Quincey Morris wrote:
> 
> > It should
> > be pretty obvious why this is causing you to crash when messaging zombie
> > objects.
> 
> But not this, though it was my first thought, too. However, it would be a
> bug in the frameworks if 'addTrackingArea:' didn't retain the passed
> area, which means the code (effectively) leaks tracking areas, rather
> than creating zombies.

Not sure about this. All the examples in the docs have the installer of
the tracking area retain the tracking area. (I know, this isn't proof
that -addTrackingArea: doesn't or shouldn't retain it, and I'm the one
who just called the docs out as advocating an anti-pattern).

But considering that the API is intended to be used to create and
install tracking areas on objects that are potentially different from
their "owner", it seems sensible that -addTrackingArea: might not retain
the tracking area.

Of course, whether it does or not should absolutely be documented.

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to