Re: NSSlider Mouse Up
Re: NSSlider Mouse Up
- Subject: Re: NSSlider Mouse Up
- From: Ken Ferry <email@hidden>
- Date: Thu, 16 Dec 2010 14:53:18 -0800
Hi Koko,
On Thu, Dec 16, 2010 at 2:37 PM, <email@hidden> wrote:
> What is the preferred way of receiving an action when the mouse is released
> in an NSSlider?
>
The preferred thing is not to do precisely that. It's to have the action
method use, say, -performSelector:withObject:afterDelay: and +
cancelPreviousPerformRequestsWithTarget:selector:object: to schedule
expensive work that cannot be performed too often.
A couple things to note:
(1) Users using full keyboard access or accessibility are not using the
mouse, so no mouse up.
(2) According to Apple's human interface group, it is highly desirable that
changes made with sliders be live whenever possible. If something is too
expensive to do completely live, you still shouldn't wait for mouseUp: to
produce the 'real' effect, just avoid doing it every single time the user
twitches.
-Ken
Cocoa Frameworks
>
> -koko
>
> _______________________________________________
>
> 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
>
_______________________________________________
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