[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NSBezierPath and gv
From: |
Alexander Malmberg |
Subject: |
Re: NSBezierPath and gv |
Date: |
Fri, 11 Oct 2002 20:43:14 +0200 |
Stefan Urbanek wrote:
>
> Hi,
>
> I use NSBezierPath and I have first path element line
> (lineToPoint). It is drawn right on the screen, but when
> I print the view containing that path to a postscript
> file using print: I get something like:
> newpath
> ...
> [] setdash
> x y lineto
>
> When I try to view the file with gv it complains about
> 'no current point' with lineto. I have to use moveTo point
> as the first path element.Do I have to have first element
> of a path moveToPoint? I am expecing it to be (0.0, 0.0).
> Is this a bug in the bezier path, or gv or my fault of not
> using moveto?
You need to use moveto first, there is no implicit first point. Strictly
speaking, I don't think NSBezierPath is supposed to accept this, but I'm
not sure (creating paths without a starting moveto can be useful at
times, but I wouldn't expect to be able to draw them).
> Thanks,
>
> Stefan
- Alexander Malmberg