• 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: button cell - selection change timing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: button cell - selection change timing


  • Subject: Re: button cell - selection change timing
  • From: Matt Neuburg <email@hidden>
  • Date: Mon, 28 Dec 2009 08:50:51 -0800
  • Thread-topic: button cell - selection change timing

On Sun, 27 Dec 2009 18:00:59 -0800, Rainer Standke <email@hidden> said:
>When the user clicks a button in a row that is currently not selected,
>then I get the URL for the row that's in the process of being de-
>selected, because the method targeted by the button runs before the
>selection has changed to the new row.
>
>What can I do about this?

What I do in similar situations is use delayed performance. Even a delay of
0.0 is sufficient, because this causes the runloop to cycle once before the
delayed call is handled, and often everything falls into place as part of
that cycle. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

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

  • Prev by Date: Re: Any way to keep on pane of NSSplitView from resizing?
  • Next by Date: Re: Updating tracking areas Rect
  • Previous by thread: Re: button cell - selection change timing
  • Next by thread: Program not working under Snow Leopard
  • Index(es):
    • Date
    • Thread