Re: PDFAnnotationLine problem
Re: PDFAnnotationLine problem
- Subject: Re: PDFAnnotationLine problem
- From: John Calhoun <email@hidden>
- Date: Tue, 5 Feb 2008 15:30:24 -0800
On Feb 5, 2008, at 7:16 AM, Vince wrote:
(1) As mentioned last time, its working well; but the StartPoint and
EndPoint that "works" are those in the coordinate system of the
Annotation bounds. If I use Page Coordinates, it is displaced. I'll
look more into the code, but I believe this behavior is very
distinct from the PDFAnnotationSquare (and Line and Link) which uses
the Page Coordinates.
I would have to check the code for Leopard vs. Tiger, but it sounds
like the documentation is wrong (sort of). I think my train of
thought on the annotations like this was to make the end points (for
the Line) relative to the annotations bounds — call them offsets
really. This makes it easier for an app that wants to allow a user to
drag an annotation around on a page — you can simply offset the bounds
of the annotation without having to touch the end points.
Ink is another annotation that has points relative to its annotation
bounds.
I said "sort of" above though because the coordinates are sort of in
page-space. They are still in "points" (as in 72 points per inch) and
unaffected by say zooming or whatever in the PDFView.
I should update the headers/documentation to be more explicit here.
(2) The interior color does not seem to work for the line. The
documentation for the constants for the Line Style indicates that
the interior of the markers for the beginning and end of line (e.g.,
square, arrow or whatever) is filled by the interior color.
Antonio is right. Interior color was added in Leopard. Actually,
PDFLine has in Tiger, internally (it was not in the public headers) a
call for setInteriorColor but sadly this is not used when rendering
the line end points.
John Calhoun—_______________________________________________
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