Re: Hover button and tracking area questions
Re: Hover button and tracking area questions
- Subject: Re: Hover button and tracking area questions
- From: Kyle Sluder <email@hidden>
- Date: Thu, 24 Jan 2013 00:30:14 -0800
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 (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