mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 18:42:24 +00:00
Fix some typos
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
}
|
||||
|
||||
|
||||
+ (NSArray *)databaseIconType {
|
||||
+ (NSArray *)databaseIconTypes {
|
||||
static NSArray *iconTypes;
|
||||
static dispatch_once_t onceToken;
|
||||
dispatch_once(&onceToken, ^{
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user