Skip to content

support carthage and fixed crash when get info of view #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion Alpha/Alpha.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Dal Rupnik on 19/06/15.
// Copyright © 2015 Unified Sense. All rights reserved.
//

#import <UIKit/UIKit.h>
//! Project version number for Alpha.
FOUNDATION_EXPORT double AlphaVersionNumber;

Expand Down
3 changes: 1 addition & 2 deletions Alpha/Plugins/Object/Converters/ALPHAObjectConverter.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ - (ALPHAScreenSection *)sectionForPropertyName:(NSString *)property inModel:(ALP
NSArray *array = [model valueForKey:property];

section.headerText = [[property alpha_titleCaseForCamelCase] stringByAppendingFormat:@" (%ld)", (long)array.count];

for (id object in array)
{
ALPHAScreenItem *item = [[ALPHAScreenItem alloc] init];
Expand Down Expand Up @@ -145,7 +145,6 @@ - (ALPHAScreenSection *)sectionForPropertyName:(NSString *)property inModel:(ALP
{
item.object = object;
}

[items addObject:item];
}

Expand Down
2 changes: 1 addition & 1 deletion Alpha/Utility/ALPHACore.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Dal Rupnik on 17/06/15.
// Copyright © 2015 Unified Sense. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NSString+Entities.h"
#import "NSString+Identifier.h"
#import "UIApplication+Event.h"
Expand Down
10 changes: 8 additions & 2 deletions Alpha/Utility/General/ALPHARuntimeUtility.m
Original file line number Diff line number Diff line change
Expand Up @@ -337,8 +337,14 @@ +(BOOL)isSelfContainingCollection:(id)value{
} else if ([value isKindOfClass:[NSHashTable class]]){
return arrayContainsValue([(NSHashTable*)value allObjects],value);
} else if ([value isKindOfClass:[NSMapTable class]]){
return arrayContainsValue([(NSDictionary*)[(NSMapTable*)value dictionaryRepresentation] allValues],
value);
@try {
return arrayContainsValue([(NSDictionary*)[(NSMapTable*)value dictionaryRepresentation] allValues],
value);
} @catch (NSException *exception) {

} @finally {
return NO;
}
} else if ([value isKindOfClass:[NSPointerArray class]]){
return arrayContainsValue([(NSPointerArray*)value allObjects],value);
}
Expand Down
Loading