1 #import "ITTextField.h"
2 #import "ITTextFieldCell.h"
3 #import <ApplicationServices/ApplicationServices.h>
4 #import "ITCoreGraphicsHacks.h"
7 /*************************************************************************/
9 #pragma mark IMPLEMENTATION
10 /*************************************************************************/
12 @implementation ITTextField
15 /*************************************************************************/
17 #pragma mark INITIALIZATION METHODS
18 /*************************************************************************/
22 if ( self == [ITTextField class] ) {
23 [self setCellClass:[ITTextFieldCell class]];
29 return [ITTextFieldCell class];
33 /*************************************************************************/
35 #pragma mark ACCESSOR METHODS
36 /*************************************************************************/
40 return [[self cell] castsShadow];
43 - (void)setCastsShadow:(BOOL)newSetting;
45 [[self cell] setCastsShadow:newSetting];
48 - (float)shadowElevation;
50 return [[self cell] shadowElevation];
53 - (void)setShadowElevation:(float)newElevation;
55 [[self cell] setShadowElevation:newElevation];
58 - (float)shadowAzimuth;
60 return [[self cell] shadowAzimuth];
63 - (void)setShadowAzimuth:(float)newAzimuth;
65 [[self cell] setShadowAzimuth:newAzimuth];
68 - (float)shadowAmbient;
70 return [[self cell] shadowAmbient];
73 - (void)setShadowAmbient:(float)newAmbient;
75 [[self cell] setShadowAmbient:newAmbient];
78 - (float)shadowHeight;
80 return [[self cell] shadowHeight];
83 - (void)setShadowHeight:(float)newHeight;
85 [[self cell] setShadowHeight:newHeight];
88 - (float)shadowRadius;
90 return [[self cell] shadowRadius];
93 - (void)setShadowRadius:(float)newRadius;
95 [[self cell] setShadowRadius:newRadius];
98 - (float)shadowSaturation;
100 return [[self cell] shadowSaturation];
103 - (void)setShadowSaturation:(float)newSaturation;
105 [[self cell] setShadowSaturation:newSaturation];