Re: Re: Found a bug in Cocoa: where should I report it?
Re: Re: Found a bug in Cocoa: where should I report it?
- Subject: Re: Re: Found a bug in Cocoa: where should I report it?
- From: "Michael Ash" <email@hidden>
- Date: Sun, 23 Jul 2006 17:16:27 -0400
On 7/23/06, Matteo Manferdini <email@hidden> wrote:
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.
Yeah, that will do it for sure.
> 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!).
If such a warning does not exist already then I would definitely think
about filing at least a bug against the documentation.
Another thing to consider is that this entire problem may be going
away in Leopard. The whole resolution-independent UI business that's
been rumored to appear* means that your views can, effectively, always
be on a sub-pixel boundary depending on the user's resolution setting,
even if you made sure that your coordinates are always integral. Since
it wouldn't be acceptable for apps to just randomly break because of
the resolution setting, I'm guessing this will be fixed.
* I don't know how concrete the resolution-independent UI is, but its
appearance in Tiger in Quartz Debug would seem to indicate a fairly
sure thing.
Mike
_______________________________________________
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