Re: Strange issue in stroking a bezier path
Re: Strange issue in stroking a bezier path
- Subject: Re: Strange issue in stroking a bezier path
- From: Peter Teeson <email@hidden>
- Date: Fri, 04 May 2012 22:31:20 -0400
On 2012-05-04, at 10:22 PM, Charlie Dickman wrote:
> (I'm staying in Snow Leopard using Xcode 3; I hate Lion and it's move away from the mouse.
I don't understand. I only use a mouse on my Mac Pro. No Tablet. (I don't do iDevice apps)
So I don't see any of the bouncy castle scroll things that some people abhor.
> Changing monitors or resolution, I think, will not address the problem. A different, perhaps "better" graphics card might.
It's an NVIDIA GeForce GT 120 card provided by Apple when I bought the MacPro and Display.
Thanks for your thoughts but, with respect, I think we are dealing with different issues.
> On May 4, 2012, at 9:19 PM, Peter Teeson wrote:
>> 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
>
> Charlie Dickman
> email@hidden
>
>
>
_______________________________________________
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