mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
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:
parent
08e6898650
commit
a0c97c1ddd
22 changed files with 253 additions and 94 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue