Commits

Anonymous committed 09614be

Fixed some compile warnings

Comments (0)

Files changed (6)

BWAnchoredButtonBar.m

 static BOOL wasBorderedBar;
 static float scaleFactor = 0.0f;
 
-@interface BWAnchoredButtonBar (BWABBPrivate)
+@interface BWAnchoredButtonBar (BWABBPrivate) <NSSplitViewDelegate>
 - (void)drawResizeHandleInRect:(NSRect)handleRect withColor:(NSColor *)color;
 - (void)drawLastButtonInsetInRect:(NSRect)rect;
 - (BOOL)isInLastSubview;

BWSelectableToolbar.m

 - (void)encodeWithCoder:(NSCoder*)coder;
 @end
 
-@interface BWSelectableToolbar (BWSTPrivate)
+@interface BWSelectableToolbar (BWSTPrivate) <NSToolbarDelegate>
 - (NSArray *)selectableItemIdentifiers;
 - (void)setItemSelectors;
 - (void)initialSetup;
 
 #define RESIZE_DEBUG_LOGS 0
 
-@interface BWSplitView (BWSVPrivate)
+@interface BWSplitView (BWSVPrivate) <NSSplitViewDelegate>
 
 - (void)drawDimpleInRect:(NSRect)aRect;
 - (void)drawGradientDividerInRect:(NSRect)aRect;

BWSplitViewInspectorAutosizingView.m

 		// Make the new buttons represent whether the subviews are set to resize or not
 		if ([splitView isVertical])
 		{
-			if ([[[splitView subviews] objectAtIndex:i] autoresizingMask] & NSViewWidthSizable)
+			if ([(NSView *)[[splitView subviews] objectAtIndex:i] autoresizingMask] & NSViewWidthSizable)
 				[subviewButton setIntValue:1];
 		}
 		else
 		{
-			if ([[[splitView subviews] objectAtIndex:i] autoresizingMask] & NSViewHeightSizable)
+			if ([(NSView *)[[splitView subviews] objectAtIndex:i] autoresizingMask] & NSViewHeightSizable)
 				[subviewButton setIntValue:1];
 		}
 		
 //
 
 #import "BWStyledTextField.h"
+#import "BWStyledTextFieldCell.h"
 
 @implementation BWStyledTextField
 
 
 - (NSColor *)shadowColor
 {
-	return [[self cell] shadowColor];
+	return [(BWStyledTextFieldCell *)[self cell] shadowColor];
 }
 
 - (void)setShadowColor:(NSColor *)color
 {
-	[[self cell] setShadowColor:color];
+	[(BWStyledTextFieldCell *)[self cell] setShadowColor:color];
 	
 	[self setNeedsDisplay:YES];
 }

BWToolkit.xcodeproj/project.pbxproj

 			isa = PBXProject;
 			buildConfigurationList = C056398B08A954F8003078D8 /* Build configuration list for PBXProject "BWToolkit" */;
 			compatibilityVersion = "Xcode 3.1";
+			developmentRegion = English;
 			hasScannedForEncodings = 1;
+			knownRegions = (
+				English,
+				Japanese,
+				French,
+				German,
+			);
 			mainGroup = 0259C574FE90428111CA0C5A /* BWToolkit */;
 			projectDirPath = "";
 			projectRoot = "";