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: Strange crash and debug alert




On May 31, 2007, at 6:27 PM, Carlos Eduardo Mello wrote:

On May 31, 2007, at 2:15PM, Laurence Harris wrote:

Here's what I'd try. In your focus handler, call CallNextEventHandler at the very beginning to allow the Control Manager to complete the process of removing the focus. Then process the text and remove the control. The problem with your current logic is that at the time you destroy the control it still has focus.

Larry

Did exactly what you suggested, but I still get 75K+ kEventControlSetFocusPart hits.
It always gets called when the code reaches HIViewRemoveFromSuperview().

I think you'll need to use the approach someone else suggested of installing a one-shot timer to remove your superview a short time after focus has been removed.


-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


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.