Added method for returning immutable objects.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14776 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-10-14 08:52:39 +00:00
parent 53e98d912a
commit d54488d74d
8 changed files with 76 additions and 12 deletions

View file

@ -479,6 +479,12 @@ static SEL eqSel;
_contents_array[index] = RETAIN(anObject);
}
- (id) makeImmutableCopyOnFail: (BOOL)force
{
isa = [GSArray class];
return self;
}
- (void) removeLastObject
{
if (_count == 0)