• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: performSelectorOnMainThread & NSEventTrackingRunLoopMode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: performSelectorOnMainThread & NSEventTrackingRunLoopMode
      • From: Chris Suter <email@hidden>
References: 
 >performSelectorOnMainThread & NSEventTrackingRunLoopMode (From: Chris Suter <email@hidden>)

  • Prev by Date: Re: Detecting when menubar is visible
  • Next by Date: Re: NSDatePicker behaviour is odd when typing date
  • Previous by thread: performSelectorOnMainThread & NSEventTrackingRunLoopMode
  • Next by thread: Re: performSelectorOnMainThread & NSEventTrackingRunLoopMode
  • Index(es):
    • Date
    • Thread