Add missing accessor to CPImageView, and fix nib2cib support for image scaling.

Closes #523.
This commit is contained in:
Ross Boucher committed 2010-03-05 13:46:41 -08:00
1 parent c478afee0f
commit 7d1c7b2907
2 files changed
+6 -15

No files matched your search

+5 -14
View File
@@ -31,24 +31,10 @@
#include "CoreGraphics/CGGeometry.h"
/*
@global
@group CPImageScaling
*/
CPScaleProportionally = 0;
/*
@global
@group CPImageScaling
*/
CPScaleToFit = 1;
/*
@global
@group CPImageScaling
*/
CPScaleNone = 2;
var CPImageViewShadowBackgroundColor = nil;
var LEFT_SHADOW_INSET = 3.0,
@@ -225,6 +211,11 @@ var LEFT_SHADOW_INSET = 3.0,
[self setNeedsDisplay:YES];
}
- (unsigned)imageScaling
{
return [self currentValueForThemeAttribute:@"image-scaling"];
}
/*!
Toggles the display of the image view.
*/
+1 -1
View File
@@ -33,7 +33,7 @@
{
var cell = [aCoder decodeObjectForKey:@"NSCell"];
_imageScaling = [cell imageScaling];
[self setImageScaling:[cell imageScaling]];
_isEditable = [cell isEditable];
}