• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2681
  • Last Modified:

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..
0
venkateshwarr
Asked:
venkateshwarr
1 Solution
 
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

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now