• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ScalingScrollView with Sketch [workaround]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Re: ScalingScrollView with Sketch [workaround] (From: Jeff Argast <email@hidden>)

  • Prev by Date: Re: NSDocument / Java problem
  • Next by Date: NSProgressIndicator display when stopped?
  • Previous by thread: Re: ScalingScrollView with Sketch [workaround]
  • Next by thread: Re: ScalingScrollView with Sketch [workaround]
  • Index(es):
    • Date
    • Thread