Re: ScalingScrollView with Sketch [workaround]
Re: ScalingScrollView with Sketch [workaround]
- Subject: Re: ScalingScrollView with Sketch [workaround]
- From: Eric Forget <email@hidden>
- Date: Thu, 26 Feb 2004 12:57:17 -0500
Hi,
After answering Jeff I just realized that we were both turning around the
real problem. So here is, what I believe, the best approach since it do not
hack either drawing or the invalidation. It just returns the real current
state of the view opacity and disabling "drawing and coordinate calculation
optimizations".
@implementation MyTextEditorView
- (BOOL)isRotatedOrScaledFromBase
{
// This prevents the spacing between glyphs from being laid out badly
return NO;
}
- (BOOL)isOpaque
{
// This prevents drawing over itself multiple times creating bold
// glitches while selecting the text
// We are opaque only if we draw our background!!!
return [self drawsBackground];
}
@end
Eric
___________________________________________________________________
Eric Forget Cafederic
email@hidden <
http://www.cafederic.com/>
Fingerprint <86D5 38F5 E1FD 5D9C 71C3 BAA3 797E 70A4 6210 C684>
_______________________________________________
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.