aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPObjectAdditions.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPObjectAdditions.h')
-rw-r--r--Source/SPObjectAdditions.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPObjectAdditions.h b/Source/SPObjectAdditions.h
index bfe620d9..cf71801b 100644
--- a/Source/SPObjectAdditions.h
+++ b/Source/SPObjectAdditions.h
@@ -36,6 +36,12 @@
- (BOOL)isNSNull;
/**
+ * This is the complementing method to SPBoxNull()
+ * @return The object itself or nil if self == [NSNull null]
+ */
+- (instancetype)unboxNull;
+
+/**
* easier to read version of [array containsObject:x]
*/
- (BOOL)isInArray:(NSArray *)list;