Re: button cell - selection change timing
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