On May 28, 2007, at 9:24 AM, Carlos Eduardo Mello wrote:
I need to have different behaviours in my custom view for single
click and double click. After reading headers and docs and sample
code for carbon events, controls, hiviews, etc., I figured I would
need to check for a mouse hit in my view and then check the click
count parameter. So, I registered for kEventControlHitTest and
kEventControlHit. I believe I am handling the HitTest correctly
( code below ),
Why do you believe this? Have you verified that CGRectContainsPoint
is returning the expected result when you click the view and that
BackViewHitTest is returning the expected error code?
but I never get the Hit event. [ OS 10.4.9, XCode 2.4, G4 ]
Then that would suggest you *aren't* handling the HitTest event
Could any body point out my mistakes/bad assumptions/etc.?
Am I doing everything wrong?
// From custom-view event handler...
switch ( eventKind )
err = noErr;
err = theCustomView->BackViewDraw( inEvent );
err = theCustomView->BackViewHitTest( inEvent );
err = theCustomView->BackViewGetRegion( inEvent );
err = theCustomView->ProcessMouseClick( inEvent );
Dr. Carlos Eduardo Mello (email@hidden)
Music Technology Lab, Music Department
University of Brasília, Brazil
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden