Re: Waiting on NSTableView to finish changing selection
Re: Waiting on NSTableView to finish changing selection
- Subject: Re: Waiting on NSTableView to finish changing selection
- From: Allan Donald <email@hidden>
- Date: Wed, 8 Jul 2009 23:07:22 +0100
On Wed, Jul 8, 2009 at 6:24 PM, Adam R. Maxwell<email@hidden> wrote:
> On Jul 8, 2009, at 10:15 AM, Kyle Sluder wrote:
>
>> Subclass NSTableView and override -keyDown:
>
> That sounds like a good way to do it. Another is to implement the table
> delegate to enqueue/coalesce a notification [snip]
Yep, flagging the keyDown/Ups does the job neatly. (For anyone coming
across this in future, the selectionDidChange is fired before the
keyUp, as makes sense ultimately, so you have to send a separate
notification, as Adam says).
Hadn't thought of coalescing the notifications either, that would have
solved it as well.
Many thanks to both of you.
-Allan
_______________________________________________
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