diff --git a/UMEKit.xcodeproj/project.pbxproj b/UMEKit.xcodeproj/project.pbxproj index 8b94826..5a64fcb 100644 --- a/UMEKit.xcodeproj/project.pbxproj +++ b/UMEKit.xcodeproj/project.pbxproj @@ -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 = ""; @@ -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; @@ -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; @@ -1041,7 +1045,7 @@ GCC_WARN_UNUSED_VARIABLE = YES; ONLY_ACTIVE_ARCH = YES; PREBINDING = NO; - SDKROOT = macosx10.6; + SDKROOT = macosx; }; name = Debug; }; @@ -1053,7 +1057,7 @@ GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNUSED_VARIABLE = YES; PREBINDING = NO; - SDKROOT = macosx10.6; + SDKROOT = macosx; }; name = Release; }; @@ -1080,7 +1084,7 @@ ); PREBINDING = NO; PRODUCT_NAME = DemoApp; - SDKROOT = ""; + SDKROOT = macosx; }; name = Debug; }; @@ -1106,7 +1110,7 @@ ); PREBINDING = NO; PRODUCT_NAME = DemoApp; - SDKROOT = ""; + SDKROOT = macosx; ZERO_LINK = NO; }; name = Release; diff --git a/include/UMEKit/UMETabBarItem.h b/include/UMEKit/UMETabBarItem.h index 1b40072..85728d3 100644 --- a/include/UMEKit/UMETabBarItem.h +++ b/include/UMEKit/UMETabBarItem.h @@ -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 diff --git a/src/UMETabBarItem.m b/src/UMETabBarItem.m index d9f8013..ac16fc1 100644 --- a/src/UMETabBarItem.m +++ b/src/UMETabBarItem.m @@ -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];