• 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: wait until the button releases
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wait until the button releases


  • Subject: Re: wait until the button releases
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 15 Sep 2009 11:52:44 -0700

On Tue, Sep 15, 2009 at 11:41 AM, Matt Neuburg <email@hidden> wrote:
> In my code I sometimes want to wait until the button that triggers my code
> has released itself (e.g. unhighlighted). My way of doing this is with
> delayed performance, i.e. the button's action method calls
> performSelector...afterDelay and then the real stuff happens. Just
> wondering: Is there a better approach? I guess I'm looking for a command
> that means "wait for the event loop to come round again". m.

Read "The Mouse-Tracking Loop Approach":
https://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/EventOverview/HandlingMouseEvents/HandlingMouseEvents.html#//apple_ref/doc/uid/10000060i-CH6-SW18

--Kyle Sluder
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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

References: 
 >wait until the button releases (From: Matt Neuburg <email@hidden>)

  • Prev by Date: wait until the button releases
  • Next by Date: Re: authorization services
  • Previous by thread: wait until the button releases
  • Next by thread: Having a weird error with NSStreams
  • Index(es):
    • Date
    • Thread