mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +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
|
@ -325,6 +325,11 @@ static Class GSInlineArrayClass;
|
|||
return nil;
|
||||
}
|
||||
|
||||
- (BOOL) makeImmutable
|
||||
{
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (id) objectAtIndex: (NSUInteger)index
|
||||
{
|
||||
if (index >= _count)
|
||||
|
@ -632,6 +637,12 @@ static Class GSInlineArrayClass;
|
|||
_version++;
|
||||
}
|
||||
|
||||
- (BOOL) makeImmutable
|
||||
{
|
||||
GSClassSwizzle(self, [GSArray class]);
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (id) makeImmutableCopyOnFail: (BOOL)force
|
||||
{
|
||||
GSClassSwizzle(self, [GSArray class]);
|
||||
|
@ -1154,6 +1165,7 @@ static Class GSInlineArrayClass;
|
|||
}
|
||||
return index;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation GSPlaceholderArray
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue