~ubuntu-branches/ubuntu/karmic/gnustep-base/karmic

« back to all changes in this revision

Viewing changes to Source/NSNull.m

  • Committer: Bazaar Package Importer
  • Author(s): Eric Heintzmann
  • Date: 2005-04-17 00:14:38 UTC
  • mfrom: (1.2.1 upstream) (2.1.2 hoary)
  • Revision ID: james.westby@ubuntu.com-20050417001438-enf0y07c9tku85z1
Tags: 1.10.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
   Written by:  Richard Frith-Macdonald <rfm@gnu.org>
5
5
   Date: 2000
6
 
   
 
6
 
7
7
   This file is part of the GNUstep Base Library.
8
8
 
9
9
   This library is free software; you can redistribute it and/or
10
10
   modify it under the terms of the GNU Library General Public
11
11
   License as published by the Free Software Foundation; either
12
12
   version 2 of the License, or (at your option) any later version.
13
 
   
 
13
 
14
14
   This library is distributed in the hope that it will be useful,
15
15
   but WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
17
   Library General Public License for more details.
18
 
   
 
18
 
19
19
   You should have received a copy of the GNU Library General Public
20
20
   License along with this library; if not, write to the Free
21
21
   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA.
22
22
 
23
23
   <title>NSNull class reference</title>
24
 
   $Date: 2001/12/18 16:54:15 $ $Revision: 1.4 $
25
 
   */ 
26
 
 
27
 
/*
 
24
   $Date: 2005/02/22 11:22:44 $ $Revision: 1.7 $
 
25
   */
 
26
 
 
27
#include "Foundation/NSNull.h"
 
28
 
 
29
/**
28
30
 * An object to use as a placeholder - in collections for instance.
29
31
 */
30
 
#include <Foundation/NSNull.h>
31
 
 
32
32
@implementation NSNull
33
33
 
34
34
static NSNull   *null = 0;
51
51
    }
52
52
}
53
53
 
 
54
/**
 
55
 * Return an object that can be used as a placeholder in a collection.
 
56
 * This method always returns the same object.
 
57
 */
54
58
+ (NSNull*) null
55
59
{
56
60
  return null;