Re: Are non-rectangular cursor rects possible?
Re: Are non-rectangular cursor rects possible?
- Subject: Re: Are non-rectangular cursor rects possible?
- From: Gregory Weston <email@hidden>
- Date: Tue, 15 Mar 2005 12:34:48 -0500
Sean McBride wrote:
NSView's cursor rect methods are handy, but they only work with
rectangles. Likewise for the more general tracking rects. How does
one
change the cursor for an arbitrary part of a view? For example, can I
specify that a closed NSBezierPath should have cursor X?
I guess I could approximate any shape with many small rectangles. Any
idea if performance will degrade horribly with 100s or 1000s of cursor
rects?
What I'd probably do is use a small number of rectangles to reasonably
circumscribe the area I'm interested in and then use
NZBezierPath>>containsPoint: once I've determined that the likelihood
of a hit is worth the more expensive check.
G
_______________________________________________
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