Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: kEventControlTrack in custom HIView




On Oct 18, 2005, at 3:53 PM, Stephen Chu wrote:

I created a custom HIView in Interface Builder and installed various event handlers to it. That all works well. But I can't get kEventControlTrack send to me. I find out it doesn't have kControlHandlesTracking bit set when I called GetControlFeatures. I tried to set it with HIViewChangeFeatures but got -50 error.

Do I need to somehow set the features somewhere? I am really confused on this one.

No, I think that feature bit only applies to CDEF-based controls. It's more likely that you are missing a kEventControlHitTest handler. You only get a kEventControlTrack event if your view responds to the HitTest event and returns a non-zero part code.


-eric

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden

This email sent to email@hidden
References: 
 >kEventControlTrack in custom HIView (From: Stephen Chu <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.