Commits

Tuukka Norri  committed 51edaa4

Changed NSAsserts to BXAsserts

  • Participants
  • Parent commits 32114f7

Comments (0)

Files changed (1)

File BaseTenAssistant/Sources/MKCPolishedHeaderView.m

 #import "Additions.h"
 #import "MKCPolishedHeaderCell.h"
 #import <BaseTen/BXEnumerate.h>
+#import <BaseTen/BXLogger.h>
 
 NSString* kMKCEnabledColoursKey		 = @"kMKCEnabledColoursKey";
 NSString* kMKCDisabledColoursKey	 = @"kMKCDisabledColoursKey";
 - (NSRect) headerRectOfColumn: (int) columnIndex
 {
     NSRect rect = [super headerRectOfColumn: columnIndex];
-    NSAssert (rect.size.height == [self frame].size.height, @"Expected heights to match.");
+    BXAssertLog (rect.size.height == [self frame].size.height, @"Expected heights to match.");
     return rect;
 }
 
         [self setColours: [[self class] darkColours]];
     
     float height = [self bounds].size.height;
-    NSAssert (height >= 3.0, @"This view may not be shorter than 3.0 units.");
+    BXAssertVoidReturn (height >= 3.0, @"This view may not be shorter than 3.0 units.");
     
 	NSDictionary* enabledColours = nil;
 	NSDictionary* selectedColours = nil;