Re: ScalingScrollView with Sketch [workaround]
Re: ScalingScrollView with Sketch [workaround]
- Subject: Re: ScalingScrollView with Sketch [workaround]
- From: Jeff Argast <email@hidden>
- Date: Thu, 26 Feb 2004 15:34:26 -0700
Overriding SetOpaque doesn't change the behavior for me, I still get
the text drawing over itself.
In my app I don't have the text squeezing problem you describe when
editting the text. Perhaps the shared text editor in Sketch is not in
the view hierarchy correctly or is not updated when the scale is
changed?
Another issue I have encountered is that the drawing of the mouse drag
selection highlight in a rotated text view is wrong. The selection is
correct; I have verified that by unhooking the editor from the
superview and noting the grey selection highlight encompasses the
characters a click on. I have not found an acceptable solution to this
problem yet.
And yet another problem: if you want your text box to grow horizontally
and vertically much like the text box does in OmniGraffle, you will
have to find a way to accomplish that yourself. Using the built in
resizing mechanism of the text container and text view fails on
anything other than left aligned text. See my other posting about that
problem. My only solution so far is to have two NSTextStorage objects,
one mirroring the other in everything but alignment. Then I use the
laid out container size from the mirrored text storage to resize the
real text storage. Lame, but maybe someone else has a better solution.
Jeff
_______________________________________________
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.