• 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: Strange effect when rotating and scaling
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange effect when rotating and scaling


  • Subject: Re: Strange effect when rotating and scaling
  • From: "John C. Randolph" <email@hidden>
  • Date: Wed, 10 May 2006 17:40:20 -0700


On May 9, 2006, at 11:55 AM, Terry Heaford wrote:

Please be kind to a newbie.

I have a rotated scaled image in a sub-classed NSView within an NSScroller.

I have just noticed that when the image is scaled and I am using the rotation slider which is implemented in a panel I get a line from 2 of the corners which seem to contain some remnants of the image when at its previous location. The line is not for the full length of the width or height of the bounds rect but is on its perimeter.

It's as though the rect was not cleared correctly when the image is rotated. I do not know enough cocoa to diagnose why this should be happening.

Has anyone seen this before and could they please point me in the right direction.

Make sure that your -drawRect: method completely fills all of the rects you get from -getRectsBeingDrawn:count:


-jcr


"The problem with trying to child-proof the world, is that it makes people neglect the far more important task of world-proofing the child." -- Hugh Daniel


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Strange effect when rotating and scaling (From: Terry Heaford <email@hidden>)

  • Prev by Date: Re: Weird error with structs and @try/@catch
  • Next by Date: Re: iTunesHelper-like application...
  • Previous by thread: Strange effect when rotating and scaling
  • Next by thread: Reordering a table view with Core Data
  • Index(es):
    • Date
    • Thread