Re: Line Drawing problem
Re: Line Drawing problem
- Subject: Re: Line Drawing problem
- From: Dale Satterfield <email@hidden>
- Date: Mon, 04 Jul 2011 05:17:56 -0700
Well, hopefully that code is correct since it is the unmodified code from the book.
I have a Davis Weatherstation and the console talks to the Mac via USB. Davis has had very sporadic Mac support, and their application which used to run under Mac OSX, but badly, won't run at all under current versions.
In addition, I wanted to learn Objective-C and Cocoa, having done mostly C and C++ work previously.
So the data I am trying to plot is inside/outside temps, wind speeds, barometric pressures, etc.
I have put the original image, plus the non-antialiaed one in my public iDisk folder. idisk.mac.com/dsatterfield//Public
On Jul 3, 2011, at 6:44 PM, Jens Alfke wrote:
>
> On Jul 3, 2011, at 5:39 PM, Dale Satterfield wrote:
>
>> Hopefully this image will show in your email. Note that the horizontal lines though much thinner, at least now show up as black with the anti-aliasing turned off. I still have to have anti-aliasing on,
>> so I still have the problem, as well as the diagonal lines >> thicker than horizontal issue. Not sure how to fix that either, as there are no "brushes" that I can see discussed in the Cocoa drawing guide.
>
> You must have a bug in how you’re calculating ‘unitSize’, since that’s what determines the line width. You didn’t show that code, and it’s not really relevant here since your use of Cocoa APIs seems correct. You haven’t explained what it is you’re trying to do, either.
>
> —Jens
Dale Satterfield
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