• 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: NSUnionRect
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUnionRect


  • Subject: Re: NSUnionRect
  • From: Ali Ozer <email@hidden>
  • Date: Fri, 2 Mar 2007 23:37:10 -0800

As documented, http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Functions/Reference/reference.html#/ /apple_ref/c/func/NSUnionRect. Basically a 0 by 0 rectangle is considered to be non-existent for purposes of unioning; this enables a number of rect operations to be performed in tandem.

Returns the smallest rectangle that completely encloses both aRect and bRect. If one of the rectangles has 0 (or negative) width or height, a copy of the other rectangle is returned; but if both have 0 (or negative) width or height, the returned rectangle has its origin at (0.0, 0.0) and has 0 width and height.

Ali




Begin forwarded message:

From: Gordon Apple <email@hidden>
Date: March 2, 2007 11:23:50  PST
To: email@hidden
Subject: NSUnionRect

   The list search is dead tonight.

What's with NSUnionRect? I am getting a result of (0,0,0,0) when
evaluating NSUnionRect with (0,600,0,0) and (400,600,0,0). The correct
result should be (0,600,400,0). I was trying to use it to compute the
bounding rect of a polygon. I wrote my own to make it work right.


_______________________________________________

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
_______________________________________________

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


References: 
 >NSUnionRect (From: Gordon Apple <email@hidden>)

  • Prev by Date: Re: Subclass of NSMutableDictionary hanging
  • Next by Date: Re: Preventing beach balls
  • Previous by thread: NSUnionRect
  • Next by thread: Re: NSUnionRect
  • Index(es):
    • Date
    • Thread