Re: drawing pixels in NSView
Re: drawing pixels in NSView
- Subject: Re: drawing pixels in NSView
- From: Carlos Weber <email@hidden>
- Date: Tue, 27 Nov 2001 07:18:50 -1000
On Monday, November 26, 2001, at 08:47 , Carsten Koehler wrote:
Hi all,
I'm trying to create an application where I can draw 'big' pixels on a
NSView. (Just like an Icon Editor)
What I'm doing is to get the mouse position, calculate a rectangle,
append it to an NSBezierPath and redraw the NSView.
Basically it's working the only problem is, that it doesn't respond to
my drawing quite well. If I move the mouse very slowly, it draws every
dot. But if I move the mouse faster, the distance between the dots get
bigger and bigger.
Gerard Iglesias posted the source code to an app which does what you are
describing; he uses Core Graphics calls. The app is called Screen Glass;
you can look for it on Softrak (www.stepwise.com).