mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-18 02:39:30 +00:00
Fix some typos
This commit is contained in:
@@ -73,15 +73,15 @@ typedef NS_ENUM(NSUInteger, MPIconType) {
|
|||||||
+ (NSDictionary *)availableIconNames;
|
+ (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
|
* @return Array of Icons as NSImage objects
|
||||||
*/
|
*/
|
||||||
+ (NSArray *)databaseIcons;
|
+ (NSArray *)databaseIcons;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* List of all available DatabaseIcons as MPIconType. Sorted by IconIndex
|
* List of all available DatabaseIcons as an array of MPIconType. Sorted by IconIndex.
|
||||||
* @return Array of Names as NSNumber objects
|
* @return Array of MPIconType as NSNumber objects
|
||||||
*/
|
*/
|
||||||
+ (NSArray *)databaseIconType;
|
+ (NSArray *)databaseIconTypes;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
+ (NSArray *)databaseIconType {
|
+ (NSArray *)databaseIconTypes {
|
||||||
static NSArray *iconTypes;
|
static NSArray *iconTypes;
|
||||||
static dispatch_once_t onceToken;
|
static dispatch_once_t onceToken;
|
||||||
dispatch_once(&onceToken, ^{
|
dispatch_once(&onceToken, ^{
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ NSInteger const kMPDefaultIcon = -1;
|
|||||||
NSButton *button = sender;
|
NSButton *button = sender;
|
||||||
NSImage *image = [button image];
|
NSImage *image = [button image];
|
||||||
NSUInteger buttonIndex = [[self.iconCollectionView content] indexOfObject:image];
|
NSUInteger buttonIndex = [[self.iconCollectionView content] indexOfObject:image];
|
||||||
self.selectedIcon = [[MPIconHelper databaseIconType] [buttonIndex] integerValue];
|
self.selectedIcon = [[MPIconHelper databaseIconTypes] [buttonIndex] integerValue];
|
||||||
[self.popover performClose:self];
|
[self.popover performClose:self];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user