Fix some typos

This commit is contained in:
Dennis Bolio
2014-04-15 22:20:01 +02:00
parent ea6db31d03
commit 3b6d182d0e
3 changed files with 6 additions and 6 deletions

View File

@@ -73,15 +73,15 @@ typedef NS_ENUM(NSUInteger, MPIconType) {
+ (NSDictionary *)availableIconNames;
/**
* List of all availabel DatabaseIcons as Images. Sorted by IconIndex
* List of all available DatabaseIcons as an array of Images. Sorted by IconIndex.
* @return Array of Icons as NSImage objects
*/
+ (NSArray *)databaseIcons;
/**
* List of all available DatabaseIcons as MPIconType. Sorted by IconIndex
* @return Array of Names as NSNumber objects
* List of all available DatabaseIcons as an array of MPIconType. Sorted by IconIndex.
* @return Array of MPIconType as NSNumber objects
*/
+ (NSArray *)databaseIconType;
+ (NSArray *)databaseIconTypes;
@end

View File

@@ -47,7 +47,7 @@
}
+ (NSArray *)databaseIconType {
+ (NSArray *)databaseIconTypes {
static NSArray *iconTypes;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{

View File

@@ -58,7 +58,7 @@ NSInteger const kMPDefaultIcon = -1;
NSButton *button = sender;
NSImage *image = [button image];
NSUInteger buttonIndex = [[self.iconCollectionView content] indexOfObject:image];
self.selectedIcon = [[MPIconHelper databaseIconType] [buttonIndex] integerValue];
self.selectedIcon = [[MPIconHelper databaseIconTypes] [buttonIndex] integerValue];
[self.popover performClose:self];
}