deprecate confusing extension in favour of simpler ARC-complient method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39520 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-03-10 16:50:41 +00:00
parent 08e6898650
commit a0c97c1ddd
22 changed files with 253 additions and 94 deletions

View file

@ -338,6 +338,11 @@ static SEL objSel;
NSDefaultMallocZone()] initWithDictionary: self]);
}
- (BOOL) makeImmutable
{
return YES;
}
- (NSEnumerator*) objectEnumerator
{
return AUTORELEASE([[GSDictionaryObjectEnumerator allocWithZone:
@ -419,6 +424,12 @@ static SEL objSel;
return self;
}
- (BOOL) makeImmutable
{
GSClassSwizzle(self, [GSDictionary class]);
return YES;
}
- (id) makeImmutableCopyOnFail: (BOOL)force
{
GSClassSwizzle(self, [GSDictionary class]);