Help: drawing text within drawPageBorderWithSize again
Help: drawing text within drawPageBorderWithSize again
- Subject: Help: drawing text within drawPageBorderWithSize again
- From: "Brian Helinski" <email@hidden>
- Date: Thu, 27 Feb 2003 18:54:54 -0500
Hello:
First of all let me say that the web search engine is lame. Why can I only
get search matches if I search for draw + page + border + with + size, and
not for drawPageBorderWithSize? If I had the proper information going into
battle it would be much easier, rather than finding such things out after I
am completely stuck in the mud. As it now appears this issue has come up
several times in the distant past, but with no listed workaround (aka
Subject: Q: drawing text within drawPageBorderWithSize: Jan 14 2002 )
Rant aside, it seems that I can draw simple rects in the proper location to
test for the correct placement of desired items using NSFrameRect(), but as
soon as I attempt to either lock the focus and draw some text with -
[NSString drawInRect: withAttributes:], the text and the enclosing rect are
no longer drawn in the proper place but are shifted up or down on the page,
or if I do not lock the focus, the rects appear to be draw correctly but no
text appears. To get some really strange effects, lock focus but do not
unlock the focus on the view and the normal content of pages beyond the
first one are drawn correctly but mysteriously the text drawn by my own
drawInRect calls appear upside-down. I also tried creating my own subviews
but that approach did not seem to work either. I cannot seem to put a handle
on the exact nature of this problem by myself.
Has anyone come up with a relatively simple workaround for this problem?
What is the proper way to account for this bug in a manner that is not
likely to break when-and-if Apple does actually fix the bug. [ I am
attempting to display file name and page number when printing.]
Also, Apple, are there plans in the works to fix this problem? Please,
either fix it or yank drawPageBordersWithSize, so other developers do not
stumble across it and waste time coding towards a solution that does not
work. I would not have even thought about offering page borders at this
point in time in my application if I had known about all the existing
problems prior to starting, but now that I have already invested time into
the effort, I would like to see this feature through to completion.
Regards,
Brian Helinski
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.