mirror of
https://github.com/darlinghq/darling-corefoundation.git
synced 2024-11-27 05:40:26 +00:00
57 lines
659 B
Objective-C
57 lines
659 B
Objective-C
//
|
|
// NSNull.m
|
|
// CoreFoundation
|
|
//
|
|
// Copyright (c) 2014 Apportable. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/NSNull.h>
|
|
#import "NSCFType.h"
|
|
#import "NSObjectInternal.h"
|
|
|
|
@implementation NSNull
|
|
|
|
+ (BOOL)supportsSecureCoding
|
|
{
|
|
return NO;
|
|
}
|
|
|
|
+ (id)null
|
|
{
|
|
return (id)kCFNull;
|
|
}
|
|
|
|
+ (id)allocWithZone:(NSZone *)zone
|
|
{
|
|
return (id)kCFNull;
|
|
}
|
|
|
|
- (void)encodeWithCoder:(NSCoder *)coder
|
|
{
|
|
|
|
}
|
|
|
|
- (id)initWithCoder:(NSCoder *)coder
|
|
{
|
|
return (id)kCFNull;
|
|
}
|
|
|
|
- (id)description
|
|
{
|
|
return @"<null>";
|
|
}
|
|
|
|
- (id)copyWithZone:(NSZone *)zone
|
|
{
|
|
return (id)kCFNull;
|
|
}
|
|
|
|
SINGLETON_RR()
|
|
|
|
- (CFTypeID)_cfTypeID
|
|
{
|
|
return CFNullGetTypeID();
|
|
}
|
|
|
|
@end
|