• 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: Found a bug in Cocoa: where should I report it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Found a bug in Cocoa: where should I report it?


  • Subject: Re: Found a bug in Cocoa: where should I report it?
  • From: Matteo Manferdini <email@hidden>
  • Date: Sun, 23 Jul 2006 17:29:36 +0200

Il giorno 23/lug/06, alle ore 03:10, Michael Ash ha scritto:


This generally happens when you have non-integral coordinates. Go
through and see if any of your view coordinates have non-integral
coordinates (check them in the window's coordinate space, if you're
doing any scaling or anything like that).


Yes, the width of the subview is 2/3 of the enclosing view. I thougt about this, but I wasn't sure this was the reason.



When your views' boundaries
don't fall exactly on pixel boundaries it confuses the fancy pixel
copiers used for scrolling and things like this happen. Whether it's a
bug or not depends on your position, I suppose, but in any case it's
fairly well-known.


I don't know if that can be considered a bug, but I think that apple should include in the docs a little warning on misbehaviour with non integral values. If it's documented, it's not a bug :) ("Hey, there's a bug!". "No, it's a software feature!).



To fix it, you can make sure all of your coordinates are integral.
NSIntegralRect() can come in handy here. Or you can disable the
copying behavior by doing a setCopiesOnScroll:NO, this will cause the
entire contents to be redrawn when scrolled, which harms efficiency
but stops these sorts of artifacts.


Thank you very much for the advice.

---
Matteo Manferdini


_______________________________________________ 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
  • Follow-Ups:
    • Re: Re: Found a bug in Cocoa: where should I report it?
      • From: "Michael Ash" <email@hidden>
References: 
 >Found a bug in Cocoa: where should I report it? (From: Matteo Manferdini <email@hidden>)
 >Re: Found a bug in Cocoa: where should I report it? (From: "Michael Ash" <email@hidden>)

  • Prev by Date: NSArrayController subclass
  • Next by Date: Re: NSArrayController subclass
  • Previous by thread: Re: Found a bug in Cocoa: where should I report it?
  • Next by thread: Re: Re: Found a bug in Cocoa: where should I report it?
  • Index(es):
    • Date
    • Thread