hitTest question

2008-06-20 Thread Eugen Belyakov
Somebody knows how NSView's hitTest method works internally? ___ 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

Re: hitTest question

2008-06-20 Thread Shawn Erickson
On Fri, Jun 20, 2008 at 10:29 AM, Eugen Belyakov [EMAIL PROTECTED] wrote: Somebody knows how NSView's hitTest method works internally? Yes folks inside Apple do. -Shawn ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: hitTest question

2008-06-20 Thread Kyle Sluder
On Fri, Jun 20, 2008 at 1:29 PM, Eugen Belyakov [EMAIL PROTECTED] wrote: Somebody knows how NSView's hitTest method works internally? This is not the question you mean to ask. The question you want to ask is one or more of the following: 1) I need to implement X, kind of like what -hitTest

Re: hitTest question

2008-06-20 Thread Eugen Belyakov
I need to implement custom visual component system in OpenGL. And I want to use hitTest-like behavior ( with rotated frame rectangles and so on) to determine component under cursor. Could anyone with knowledge of how -hitTest works point me in the right direction? 2008/6/20 Kyle Sluder [EMAIL

Re: hitTest question

2008-06-20 Thread Brian Christensen
On Jun 20, 2008, at 2:50 , Eugen Belyakov wrote: I need to implement custom visual component system in OpenGL. And I want to use hitTest-like behavior ( with rotated frame rectangles and so on) to determine component under cursor. Could anyone with knowledge of how -hitTest works point me

Re: hitTest question

2008-06-20 Thread Brian Christensen
On Jun 20, 2008, at 4:04 , Brian Christensen wrote: for (Component *subcomponent in [hitComponent subcomponents]) Sorry, that line should be: for (Component *subcomponent in [match subcomponents]) { // ... } /brian smime.p7s Description: S/MIME cryptographic signature

Re: hitTest question

2008-06-20 Thread Erik Buck
You are off to a good start by trying to mimic something as well conceived and implemented as Cocoa's -hitTest: approach. Now, because you want to re-invent the solution, you will need to know a lot of details about graphics programming and associated mathematics. Determining whether a