aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2013-12-01 14:03:03 +0000
committerStuart Connolly <stuart02@gmail.com>2013-12-01 14:03:03 +0000
commit750cc1e5433641ea2b7e03da9523549c62f142d0 (patch)
treed626774909a3886fb62a5895be80b1a11ac87620
parent0a336a7123f411d5ffc68019bf8b5c3a360551b9 (diff)
downloadsequelpro-750cc1e5433641ea2b7e03da9523549c62f142d0.tar.gz
sequelpro-750cc1e5433641ea2b7e03da9523549c62f142d0.tar.bz2
sequelpro-750cc1e5433641ea2b7e03da9523549c62f142d0.zip
Suppress compiler warning by addind unhandled enumerations.
-rw-r--r--Source/BGHUDButtonCell.m16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/BGHUDButtonCell.m b/Source/BGHUDButtonCell.m
index 329af84e..fac1dc4a 100644
--- a/Source/BGHUDButtonCell.m
+++ b/Source/BGHUDButtonCell.m
@@ -135,11 +135,23 @@
case NSRecessedBezelStyle:
[self drawRecessedButtonInFrame: cellFrame];
break;
+ case NSRegularSquareBezelStyle:
+ case NSThickSquareBezelStyle:
+ case NSThickerSquareBezelStyle:
+ case NSDisclosureBezelStyle:
+ case NSShadowlessSquareBezelStyle:
+ case NSCircularBezelStyle:
+ case NSTexturedSquareBezelStyle:
+ case NSHelpButtonBezelStyle:
+ case NSRoundedDisclosureBezelStyle:
+ case NSInlineBezelStyle:
+ // Don't do anything, just to suppress compiler warning
+ break;
}
- if(buttonType == NSSwitchButton || buttonType == NSRadioButton) {
+ if (buttonType == NSSwitchButton || buttonType == NSRadioButton) {
- if([self imagePosition] != NSNoImage) {
+ if ([self imagePosition] != NSNoImage) {
[self drawImage: [self image] withFrame: cellFrame inView: [self controlView]];
}