• 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: Tooltips - what a pathetic joke... :)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tooltips - what a pathetic joke... :)


  • Subject: Re: Tooltips - what a pathetic joke... :)
  • From: Brian Webster <email@hidden>
  • Date: Tue, 17 Dec 2002 15:34:25 -0600

On Tuesday, December 17, 2002, at 03:11 PM, email@hidden wrote:

Can someone who can reproduce this problem try running sample on their
code? I'm curious what is causing this slowdown.

In my sample runs, most of the time is spent inside a private class called NSToolTipManager. It is using tracking rectangles to keep track of where all the tooltips are, but because tracking rectangles are implemented with respect to a window's coordinate system rather than a view's coordinate system, all the tracking rectangles need to be recalculated whenever the view's frame or bounds is changed. Some of the relevant stack trace chunks from the sampler report include:

540 -[NSToolTipManager recomputeToolTipsForView:remove:add:]
326 -[NSToolTipManager addTrackingRectForToolTip:]
326 -[NSToolTipManager _addTrackingRect:andStartToolTipIfNecessary:view:owner:toolTip:]
303 -[NSView addTrackingRect:owner:userData:assumeInside:]
299 -[NSWindow _setTrackingRect:inside:owner:userData:]
257 _NXSetTrackingRect
256 CGSAddTrackingRect
255 CGSAddTrackingArea
254 _CGSAddTrackingArea
254 mach_msg
254 mach_msg_trap
254 mach_msg_trap [STACK TOP]
214 -[NSWindow _discardTrackingRect:]
200 _CGSRemoveTrackingArea
200 mach_msg
199 mach_msg_trap
199 mach_msg_trap [STACK TOP]

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Methods with Variable Numbers of Arguments
  • Next by Date: on finding work
  • Previous by thread: Re: Tooltips - what a pathetic joke... :)
  • Next by thread: NSReadPixel
  • Index(es):
    • Date
    • Thread