diff options
author | stuconnolly <stuart02@gmail.com> | 2013-02-16 22:03:09 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-02-16 22:03:09 +0000 |
commit | 27156550b646a74d2345b4ff9650b7a3b4ba052e (patch) | |
tree | 4f2608744fcef3524e1c208d860452a120e1a4ce /Source/SPFavoriteTextFieldCell.m | |
parent | 624244dd35a6ca2e7942fbadbcaea756367b3453 (diff) | |
download | sequelpro-27156550b646a74d2345b4ff9650b7a3b4ba052e.tar.gz sequelpro-27156550b646a74d2345b4ff9650b7a3b4ba052e.tar.bz2 sequelpro-27156550b646a74d2345b4ff9650b7a3b4ba052e.zip |
Fix more wanrings by creating a protocol that delegates of the copy table should conform to.
Diffstat (limited to 'Source/SPFavoriteTextFieldCell.m')
-rw-r--r-- | Source/SPFavoriteTextFieldCell.m | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/SPFavoriteTextFieldCell.m b/Source/SPFavoriteTextFieldCell.m index f9ebd280..313fdc92 100644 --- a/Source/SPFavoriteTextFieldCell.m +++ b/Source/SPFavoriteTextFieldCell.m @@ -34,9 +34,6 @@ @implementation SPFavoriteTextFieldCell -/** - * Init. - */ - (id)init { if ((self = [super init])) { @@ -91,20 +88,26 @@ if ([controlView isFlipped]) { startPoint.y += cellFrame.size.height + 8.5f; endPoint.y += cellFrame.size.height + 8.5f; - } else { + } + else { startPoint.y -= cellFrame.size.height + 8.5f; endPoint.y -= cellFrame.size.height + 8.5f; } [NSGraphicsContext saveGraphicsState]; [[NSColor gridColor] set]; + NSShadow *lineGlow = [[NSShadow alloc] init]; + [lineGlow setShadowBlurRadius:1]; [lineGlow setShadowColor:[[NSColor controlLightHighlightColor] colorWithAlphaComponent:0.75f]]; [lineGlow setShadowOffset:NSMakeSize(0, -1)]; [lineGlow set]; + [NSBezierPath strokeLineFromPoint:startPoint toPoint:endPoint]; + [lineGlow release]; + [NSGraphicsContext restoreGraphicsState]; } } |