X-Git-Url: http://git.ithinksw.org/ITKit.git/blobdiff_plain/f2b0d96803579e18b734728916b484828d895e16..3e6ffde0979aded206bb6741114253dc0615cc9c:/ITTextFieldCell.m diff --git a/ITTextFieldCell.m b/ITTextFieldCell.m index 6d2b86a..3d04848 100755 --- a/ITTextFieldCell.m +++ b/ITTextFieldCell.m @@ -15,9 +15,9 @@ #pragma mark INITIALIZATION METHODS /*************************************************************************/ -- (id)init +- (id)initTextCell:(NSString *)string; { - if ( ( self = [super init] ) ) { + if ( ( self = [super initTextCell:string] ) ) { castsShadow = NO; shadowElevation = 45.0; shadowAzimuth = 90.0; @@ -32,7 +32,7 @@ - (id)initWithCoder:(NSCoder *)coder { - if ( ( self = [super initWithCoder:coder] ) ) { + if ( ( self = [super initWithCoder:coder] ) ) { castsShadow = NO; shadowElevation = 45.0; shadowAzimuth = 90.0; @@ -51,13 +51,13 @@ #pragma mark DRAWING METHODS /*************************************************************************/ -- (void)drawInteriorWithFrame:(NSRect)rect inView:(NSView *)controlView +- (void)drawWithFrame:(NSRect)rect inView:(NSView *)controlView { CGSGenericObj style = nil; CGShadowStyle shadow; if ( castsShadow ) { - // Create the shadow style to use for drawing the string +// Create the shadow style to use for drawing the string shadow.version = 0; shadow.elevation = shadowElevation; shadow.azimuth = shadowAzimuth; @@ -73,7 +73,7 @@ } // Draw the string - [super drawInteriorWithFrame:rect inView:controlView]; + [super drawWithFrame:rect inView:controlView]; if ( castsShadow ) {