On page 94, Apple's latest "Cocoa Drawing Guide" gives an example on
how to perform hit a mouse hit detection on a stroked path using
CGContextPathContainsPoint.
What I currently don't understand is how to provide a valid CGContext
during the mouseDown: event phase in which the hit detection has to be
performed. The [[NSGraphicsContext currentContext] graphicsPort] which
is used in the example is only valid during the drawing phase.
Has anybody an idea how this could work? Is it sensible to create a
temporary PDF/Bitmap context just for detecting hits?
Cheers
Frank
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartz-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden