• 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
Strange issue in stroking a bezier path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange issue in stroking a bezier path


  • Subject: Strange issue in stroking a bezier path
  • From: Peter Teeson <email@hidden>
  • Date: Fri, 04 May 2012 21:19:27 -0400

Xcode 4.3.2, Lion 10.7.3,
Apple 30" Cinema Display, Samsung SyncMaster 950p

Consider the following simple drawRect to demonstrate the issue

- (void)drawRect:(NSRect)dirtyRect
{
    // Drawing code here.
    NSRect bounds = [self bounds];
    NSBezierPath *path = [NSBezierPath bezierPathWithRect:bounds];
    [path stroke];
}

In the specific case of the Cinema Display having a resolution setting of 1280 x 800
the rectangle is not fully drawn every time. The top and right edges are missing.
But sometimes they do draw. It seems quite arbitrary.

I have tested this with all other resolutions on the Cinema Display under both standard
and HiDPI and also on the Samsung CRT. They all work just fine. Even the Samsung at 1280 x 800.

(I have tried things such as NSIntegralRect but nothing works except to change the resolution)

Why would this occur and only at that resolution and only on the Cinema Display?

Any ideas for tracking it down, or working around it, gratefully received.

TIA and respect….

Peter
_______________________________________________

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: Strange issue in stroking a bezier path
      • From: Ken Thomases <email@hidden>
    • Re: Strange issue in stroking a bezier path
      • From: Charlie Dickman <email@hidden>
  • Prev by Date: Re: how to prevent TableView update on key repeat?
  • Next by Date: Re: Strange issue in stroking a bezier path
  • Previous by thread: Re: Core Data: Setting attribute of deleted object causes it to remain in store
  • Next by thread: Re: Strange issue in stroking a bezier path
  • Index(es):
    • Date
    • Thread