On Wed, May 20, 2009 at 1:00 PM, John Harper <j...@apple.com> wrote:
> CGRectZero is the rectangle at point (0, 0) with zero size. For an empty
> rectangle that will work correctly with CGRectUnion you need to use
> CGRectNull instead.

I guess the docs need to be corrected then since the following implies
CGRectZero will work as well (still not sure why a zero width/height
rectangle should add to a union since be definition it has not
extent/area).

"if one of the rectangles has 0 (or negative) width or height, a copy
of the other rectangle is returned;"

-Shawn
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please 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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to