Re: performSelectorOnMainThread & NSEventTrackingRunLoopMode
Re: performSelectorOnMainThread & NSEventTrackingRunLoopMode
- Subject: Re: performSelectorOnMainThread & NSEventTrackingRunLoopMode
- From: Douglas Davidson <email@hidden>
- Date: Tue, 20 Mar 2007 17:29:36 -0700
On Mar 20, 2007, at 5:21 PM, Chris Suter wrote:
I know what the problem is, this e-mail is to see if anyone has a
workaround as I'm still trying to figure out the best solution. I'm
also posting to warn others who might be doing something similar.
For a workaround, you might subclass NSTextView and override
mouseDown: to set a flag and call super; then you could use
performSelectorOnMainThread with a method that would check that flag,
and perform its action immediately only if it is clear, otherwise it
could put it in a queue. Your mouseDown: override could then check
that queue after the super call returns, and do any actions in it,
then clear the flag.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden