aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPObjectAdditions.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPObjectAdditions.m')
-rw-r--r--Source/SPObjectAdditions.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/SPObjectAdditions.m b/Source/SPObjectAdditions.m
index 9dfe8559..43956623 100644
--- a/Source/SPObjectAdditions.m
+++ b/Source/SPObjectAdditions.m
@@ -44,6 +44,13 @@
return (self == null);
}
+- (instancetype)unboxNull
+{
+ if([self isNSNull]) return nil;
+
+ return self;
+}
+
- (BOOL)isInArray:(NSArray *)list
{
return [list containsObject:self];