Re: Tracking Rectangle Bounds
Re: Tracking Rectangle Bounds
- Subject: Re: Tracking Rectangle Bounds
- From: Alastair Houghton <email@hidden>
- Date: Wed, 18 Jul 2007 23:29:25 +0100
On 18 Jul 2007, at 23:16, Richard Somers wrote:
To make the tracking rectangle cover the entire bounds of the view
use the following adjustments. This seems to work.
NSRect rect = [self bounds];
rect.origin.y += -1.0;
rect.size.width += 1.0;
rect.size.height += 1.0;
trackingRectTag = [self addTrackingRect:rect
owner:self
userData:NULL
assumeInside:NO];
I'm a bit suspicious about this. Have you checked to make sure that
your view has integer frame co-ordinates? This could be the source
of your confusion.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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