• 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: Cutsom NSRulerView : strange problems with drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cutsom NSRulerView : strange problems with drawing


  • Subject: Re: Cutsom NSRulerView : strange problems with drawing
  • From: Uli Kusterer <email@hidden>
  • Date: Tue, 22 May 2007 11:55:48 +0200

On 22.05.2007, at 11:11, Eric MORAND wrote:
Well, the standard behavior of NSRulerView tends to prove that the drawRect... methods are allowed to draw outside the "dirty" rect : when a ruler is scaled, it redisplays every hash marks in its bound area (not only in the "dirty" rect) to match the stepUp and stepDown cycles of the current measure unit.

My guess would be that either the ruler view itself or the owner of it knows the thing is being scaled and invalidates that. The view can draw wherever it wants, but it can't rely on being able to redraw non- invalidated areas. That simply doesn't work reliably. It's the API contract: To redraw something, first invalidate it.


Of course you can send off drawing commands for everything, but it's up to AppKit to clip or draw as it pleases.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cutsom NSRulerView : strange problems with drawing
      • From: Eric MORAND <email@hidden>
References: 
 >Cutsom NSRulerView : strange problems with drawing (From: Eric MORAND <email@hidden>)
 >Re: Cutsom NSRulerView : strange problems with drawing (From: Uli Kusterer <email@hidden>)
 >Re: Cutsom NSRulerView : strange problems with drawing (From: Eric MORAND <email@hidden>)

  • Prev by Date: Re: Cutsom NSRulerView : strange problems with drawing
  • Next by Date: Re: Cutsom NSRulerView : strange problems with drawing
  • Previous by thread: Re: Cutsom NSRulerView : strange problems with drawing
  • Next by thread: Re: Cutsom NSRulerView : strange problems with drawing
  • Index(es):
    • Date
    • Thread