aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks
diff options
context:
space:
mode:
Diffstat (limited to 'Frameworks')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPNull.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPNull.m b/Frameworks/MCPKit/MCPFoundationKit/MCPNull.m
index 5d3f4523..76d9cfb1 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPNull.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPNull.m
@@ -35,7 +35,9 @@
*/
- (BOOL) isNSNull
{
- return [self isMemberOfClass:[NSNull class]];
+ static id NSNullForComparison;
+ if (!NSNullForComparison) NSNullForComparison = [NSNull null];;
+ return (self == NSNullForComparison);
}
@end