• 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: Hover button and tracking area questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Hover button and tracking area questions
      • From: Kyle Sluder <email@hidden>
References: 
 >Hover button and tracking area questions (From: Nick Rogers <email@hidden>)
 >Re: Hover button and tracking area questions (From: Kyle Sluder <email@hidden>)
 >Re: Hover button and tracking area questions (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: Coordinate conversions in CALayer
  • Next by Date: Re: Hover button and tracking area questions
  • Previous by thread: Re: Hover button and tracking area questions
  • Next by thread: Re: Hover button and tracking area questions
  • Index(es):
    • Date
    • Thread