#293 new
David K. Hess

CPSlider behavior is inverted in vertical mode

Reported by David K. Hess | July 1st, 2010 @ 07:08 AM

In vertical mode, when at maximum value, CPSlider's knob is at the bottom and when at minimum value the knob is at the top. Here's a quick and dirty workaround:

@implementation InvertedSlider : CPSlider
{
}

- (void)mySetValue:(id)aValue
{
    [self setObjectValue:[self maxValue] - aValue];
}

- (id)myValue
{
    return [self maxValue] - [self objectValue];
}

@end

A little crunched for time at the moment - but will work on a bug fix in the next week or two.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.

Shared Ticket Bins

People watching this ticket

Tags

Pages