• 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: Tracking Rectangle Bounds
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Tracking Rectangle Bounds
      • From: Richard Somers <email@hidden>
References: 
 >Tracking Rectangle Bounds (From: Richard Somers <email@hidden>)
 >Re: Tracking Rectangle Bounds (From: Richard Somers <email@hidden>)

  • Prev by Date: Re: Coordinates of Pixels
  • Next by Date: Re: Tracking Rectangle Bounds
  • Previous by thread: Re: Tracking Rectangle Bounds
  • Next by thread: Re: Tracking Rectangle Bounds
  • Index(es):
    • Date
    • Thread