Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
MiMo42 committed Oct 14, 2016
2 parents db10776 + 60d5f99 commit 052cc56
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
29 changes: 28 additions & 1 deletion MMTabBarView/MMTabBarView.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@
06DB239C1609F5820071BDA0 /* Project object */ = {
isa = PBXProject;
attributes = {
LastUpgradeCheck = 0510;
LastUpgradeCheck = 0800;
ORGANIZATIONNAME = "Michael Monscheuer";
};
buildConfigurationList = 06DB239F1609F5820071BDA0 /* Build configuration list for PBXProject "MMTabBarView" */;
Expand Down Expand Up @@ -985,11 +985,22 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
Expand All @@ -998,7 +1009,9 @@
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
Expand All @@ -1010,14 +1023,26 @@
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
SDKROOT = macosx;
};
Expand All @@ -1034,6 +1059,7 @@
FRAMEWORK_VERSION = A;
GCC_PREFIX_HEADER = "MMTabBarView/MMTabBarView-Prefix.pch";
INFOPLIST_FILE = "MMTabBarView/MMTabBarView-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "de.monscheuer.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = framework;
};
Expand All @@ -1050,6 +1076,7 @@
FRAMEWORK_VERSION = A;
GCC_PREFIX_HEADER = "MMTabBarView/MMTabBarView-Prefix.pch";
INFOPLIST_FILE = "MMTabBarView/MMTabBarView-Info.plist";
PRODUCT_BUNDLE_IDENTIFIER = "de.monscheuer.${PRODUCT_NAME:rfc1034identifier}";
PRODUCT_NAME = "$(TARGET_NAME)";
WRAPPER_EXTENSION = framework;
};
Expand Down
2 changes: 1 addition & 1 deletion MMTabBarView/MMTabBarView/MMAttachedTabBarButton.m
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ - (NSRect)draggingRect {

NSRect draggingRect = NSZeroRect;

if (style && [style respondsToSelector:@selector(dragRectForTabButton:ofTabBarView:)]) {
if (style && [style respondsToSelector:@selector(draggingRectForTabButton:ofTabBarView:)]) {
draggingRect = [style draggingRectForTabButton:self ofTabBarView:tabBarView];
} else {
draggingRect = [self _draggingRect];
Expand Down
6 changes: 3 additions & 3 deletions MMTabBarView/MMTabBarView/MMTabBarButtonCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ - (NSSize)objectCounterSize
MMTabBarView *tabBarView = [self tabBarView];
id <MMTabStyle> tabStyle = [tabBarView style];

if ([tabStyle respondsToSelector:@selector(objectCounterSizeForTabCell:)]) {
if ([tabStyle respondsToSelector:@selector(objectCounterSizeOfTabCell:)]) {
return [tabStyle objectCounterSizeOfTabCell:self];
} else {
return [self _objectCounterSize];
Expand Down Expand Up @@ -341,7 +341,7 @@ - (NSRect)closeButtonRectForBounds:(NSRect)theRect {
- (CGFloat)minimumWidthOfCell {

id <MMTabStyle> style = [self style];
if ([style respondsToSelector:@selector(minimumWidthOfTabCell)]) {
if ([style respondsToSelector:@selector(minimumWidthOfTabCell:)]) {
return [style minimumWidthOfTabCell:self];
} else {
return [self _minimumWidthOfCell];
Expand All @@ -351,7 +351,7 @@ - (CGFloat)minimumWidthOfCell {
- (CGFloat)desiredWidthOfCell {

id <MMTabStyle> style = [self style];
if ([style respondsToSelector:@selector(desiredWidthOfTabCell)]) {
if ([style respondsToSelector:@selector(desiredWidthOfTabCell:)]) {
return [style desiredWidthOfTabCell:self];
} else {
return [self _desiredWidthOfCell];
Expand Down
1 change: 1 addition & 0 deletions MMTabBarView/MMTabBarView/MMTabBarController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#import "MMAttachedTabBarButton.h"
#import "MMTabStyle.h"
#import "NSString+MMTabBarViewExtensions.h"
#import "MMTabBarView.Private.h"

#define MAX_OVERFLOW_MENUITEM_TITLE_LENGTH 60

Expand Down
2 changes: 1 addition & 1 deletion MMTabBarView/MMTabBarView/MMTabBarView-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<key>CFBundleIconFile</key>
<string></string>
<key>CFBundleIdentifier</key>
<string>de.monscheuer.${PRODUCT_NAME:rfc1034identifier}</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
Expand Down
6 changes: 6 additions & 0 deletions MMTabBarView/MMTabBarView/MMTabBarView.Private.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,10 @@

@property (assign) BOOL isReorderingTabViewItems;

#pragma mark Private Actions

- (void)_overflowMenuAction:(id)sender;
- (void)_didClickTabButton:(id)sender;
- (void)_didClickCloseButton:(id)sender;

@end

0 comments on commit 052cc56

Please sign in to comment.