Re: Tooltips - what a pathetic joke... :)
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:user
Data: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.