Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions UMEKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,11 @@
isa = PBXProject;
buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "UMEKit" */;
compatibilityVersion = "Xcode 3.1";
developmentRegion = English;
hasScannedForEncodings = 1;
knownRegions = (
en,
);
mainGroup = 0867D691FE84028FC02AAC07 /* UMEKit */;
productRefGroup = 034768DFFF38A50411DB9C8B /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -1003,7 +1007,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = "$(HOME)/Library/Frameworks";
PRODUCT_NAME = UMEKit;
SDKROOT = macosx10.5;
SDKROOT = macosx;
WRAPPER_EXTENSION = framework;
};
name = Debug;
Expand All @@ -1026,7 +1030,7 @@
INFOPLIST_FILE = Info.plist;
INSTALL_PATH = build/Release;
PRODUCT_NAME = UMEKit;
SDKROOT = macosx10.5;
SDKROOT = macosx;
WRAPPER_EXTENSION = framework;
};
name = Release;
Expand All @@ -1041,7 +1045,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
ONLY_ACTIVE_ARCH = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
SDKROOT = macosx;
};
name = Debug;
};
Expand All @@ -1053,7 +1057,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
PREBINDING = NO;
SDKROOT = macosx10.6;
SDKROOT = macosx;
};
name = Release;
};
Expand All @@ -1080,7 +1084,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = DemoApp;
SDKROOT = "";
SDKROOT = macosx;
};
name = Debug;
};
Expand All @@ -1106,7 +1110,7 @@
);
PREBINDING = NO;
PRODUCT_NAME = DemoApp;
SDKROOT = "";
SDKROOT = macosx;
ZERO_LINK = NO;
};
name = Release;
Expand Down
1 change: 1 addition & 0 deletions include/UMEKit/UMETabBarItem.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ typedef enum {
- (id)initWithTabBarSystemItem:(UMETabBarSystemItem)systemItem tag:(NSInteger)tag;
// designated initializer
- (id)initWithTitle:(NSString *)title image:(NSImage *)image tag:(NSInteger)tag;
- (void)setSelectedImage:(NSImage *)image;

@property (nonatomic, copy) NSString *badgeValue; // default is nil
@end
6 changes: 6 additions & 0 deletions src/UMETabBarItem.m
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ - (void)setImage:(NSImage *)img {
[button setImage:img];
}

- (void)setSelectedImage:(NSImage *)image {

[button setAlternateImage:image];

}


- (void)setTag:(NSInteger)aTag {
[super setTag:aTag];
Expand Down