• 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: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps


  • Subject: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • From: Bill Cheeseman <email@hidden>
  • Date: Thu, 11 Nov 2010 05:07:25 -0500


On Nov 10, 2010, at 6:01 PM, Peter Lübke wrote:

In my app, I call AXUIElementCopyAttributeNames() and AXUIElementCopyAttributeValue() very frequently, but as far as I can see, the resulting objects are all properly released and ObjectAlloc and MallocDebug show no indication of possible leaks

In your code, do you call CFRelease() on the attribute names and the attribute value when you are finished with them? The convention for Core Foundation functions like these is that, if the function contains the word "copy," you are responsible for CFReleasing the object. This applies to the accessibility functions.

--

Bill Cheeseman - email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Accessibility-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
      • From: Peter Lübke <email@hidden>
References: 
 >Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps (From: James Dempsey <email@hidden>)
 >Re:Performance slowdown when traversing UIElements under menu bar of Mail and some other apps (From: Peter Lübke <email@hidden>)

  • Prev by Date: Re:Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • Next by Date: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • Previous by thread: Re:Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • Next by thread: Re: Performance slowdown when traversing UIElements under menu bar of Mail and some other apps
  • Index(es):
    • Date
    • Thread