/ NSNull.m
NSNull.m
 1  //
 2  //  NSNull.m
 3  //  CoreFoundation
 4  //
 5  //  Copyright (c) 2014 Apportable. All rights reserved.
 6  //
 7  
 8  #import <Foundation/NSNull.h>
 9  #import "NSCFType.h"
10  #import "NSObjectInternal.h"
11  
12  @implementation NSNull
13  
14  + (BOOL)supportsSecureCoding
15  {
16      return NO;
17  }
18  
19  + (id)null
20  {
21      return (id)kCFNull;
22  }
23  
24  + (id)allocWithZone:(NSZone *)zone
25  {
26      return (id)kCFNull;
27  }
28  
29  - (void)encodeWithCoder:(NSCoder *)coder
30  {
31      
32  }
33  
34  - (id)initWithCoder:(NSCoder *)coder
35  {
36      return (id)kCFNull;
37  }
38  
39  - (id)description
40  {
41      return @"<null>";
42  }
43  
44  - (id)copyWithZone:(NSZone *)zone
45  {
46      return (id)kCFNull;
47  }
48  
49  SINGLETON_RR()
50  
51  - (CFTypeID)_cfTypeID
52  {
53      return CFNullGetTypeID();
54  }
55  
56  @end