Cocoa Objective-c line drawing

Hi,

Whenever I draw lines in NSView, the lines appear blurred and are not sharp.
What can I do to avoid this?

I have seen many links regarding this topic ... but none worked.
So, a sample xcode project for this would be great..
LVL 12
venkateshwarrAsked:
Who is Participating?
 
clausbrochCommented:
Have you tried turning off the antialiasing? You can do this by invoking the following call before doing the drawing:

[[NSGraphicsContext currentContext] setShouldAntialias:NO];

0
 
venkateshwarrAuthor Commented:
clausbroch,

It worked! Thanks for ur help
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.