From 750cc1e5433641ea2b7e03da9523549c62f142d0 Mon Sep 17 00:00:00 2001 From: Stuart Connolly Date: Sun, 1 Dec 2013 14:03:03 +0000 Subject: Suppress compiler warning by addind unhandled enumerations. --- Source/BGHUDButtonCell.m | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'Source') 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]]; } -- cgit v1.2.3