Re: NSRegion
Re: NSRegion
- Subject: Re: NSRegion
- From: Tom Bernard <email@hidden>
- Date: Tue, 23 Mar 2004 14:48:24 -0700
I thought as much. I could see regions being used in hit detection; perhaps
it is just as easy to describe the region with an NSBezierPath and use
-containsPoint.
Tom Bernard
email@hidden
on 3/23/04 2:03 AM, Allan Odgaard at email@hidden wrote:
>
On 23. Mar 2004, at 8:49, Tom Bernard wrote:
>
>
> What is the status of NSRegion?
>
>
Pure speculation, but Panther did introduce the optimized refresh
>
discussed in the posts you linked to, so most likely they have done so
>
by creating the NSRegion class.
>
>
They also did add a few methods to work with rectangle lists, although
>
nothing fancy like AND, OR, and XOR of regions. In my experience such
>
stuff is mostly needed by the implementation of the window/view/layer
>
system and not really useful in application code, so the NSRegion class
>
will probably remain private.
>
>
Interestingly I needed such functions myself not long ago, and did
>
exhaustive searching on the net before writing my own, and did not find
>
any source at all which implemented it -- maybe I was just bad at
>
searching, or my thesis holds that this is really a rare requirement ;)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: NSRegion (From: Allan Odgaard <email@hidden>) |