cappuccino/cappuccino — pull request #1670 by BlairDuncan (2012-09-05 17:05:35+00:00)
Title: Fix for CPButton not hightlighting with AlternateImage

CPButton with an alternate image, the alternate image is no longer used for highlighting when clicked.

This commit that broke it.
https://github.com/cappuccino/cappuccino/commit/7cf3ac3b40114a826e993278575ab76ce8677a86

To test:
```

@import
@implementation AppController : CPObject
{

}

- (void)applicationDidFinishLaunching:(CPNotification)aNotification
{
var window = [[CPWindow alloc] initWithContentRect:CPRectMake(30, 30, 200, 200) styleMask:CPTitledWindowMask | CPClosableWindowMask];

var button = [[CPButton alloc] initWithFrame:CGRectMake(30,50, 120, 32)],
bundle = [CPBundle bundleForClass:[CPApplication class]],
image = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:@"CPApplication/Open.png"] size:CGSizeMake(16.0, 16.0)],
alternateImage = [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:@"CPApplication/OpenHighlighted.png"] size:CGSizeMake(16.0, 16.0)];
[button setBordered:NO];
[button setImagePosition:CPImageAbove];
[button setImage:image];
[button setAlternateImage:alternateImage];
[button setTitle:@"Title"];
[button setAlternateTitle:@"Alternate Title"];
[[window contentView] addSubview:button];
[window makeKeyAndOrderFront:self];
}

@end
```