API
0.9.7
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Macros
Groups
Pages
CPNull.j
Go to the documentation of this file.
1
/*
2
* CPNull.j
3
* Foundation
4
*
5
* Created by Francisco Tolmasky.
6
* Copyright 2008, 280 North, Inc.
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
24
var
CPNullSharedNull
= nil;
25
34
@implementation
CPNull
:
CPObject
35
{
36
id
__doxygen__;
37
}
38
39
/*+ (id)alloc
40
{
41
if (CPNullSharedNull)
42
return CPNullSharedNull;
43
44
return [super alloc];
45
}*/
46
52
+ (
CPNull
)null
53
{
54
if
(!
CPNullSharedNull
)
55
CPNullSharedNull
= [[
CPNull
alloc] init];
56
57
return
CPNullSharedNull
;
58
}
59
60
- (BOOL)
isEqual
:(
id
)anObject
61
{
62
if
(
self
=== anObject)
63
return
YES;
64
65
return
[anObject isKindOfClass:[
CPNull
class]];
66
}
67
73
- (id)initWithCoder:(
CPCoder
)aCoder
74
{
75
return
[
CPNull
null
];
76
}
77
83
- (void)encodeWithCoder:(
CPCoder
)aCoder
84
{
85
}
86
87
@end
Foundation
CPNull.j
Generated on Thu Nov 28 2013 20:43:44 for API by
1.8.4