~ubuntu-branches/ubuntu/trusty/gnustep-base/trusty

« back to all changes in this revision

Viewing changes to Source/NSKeyValueMutableArray.m

Tags: upstream-1.20.0
ImportĀ upstreamĀ versionĀ 1.20.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
   $Date: 2007-06-08 04: 04: 14 -0400 (Fri, 08 Jun 2007) $ $Revision: 25230 $
24
24
   */
25
25
 
 
26
#import "common.h"
26
27
#import "Foundation/NSInvocation.h"
27
28
#import "Foundation/NSIndexSet.h"
28
29
#import "Foundation/NSKeyValueObserving.h"
182
183
  if (!([anObject respondsToSelector: insert]
183
184
    && [anObject respondsToSelector: remove]))
184
185
    {
185
 
      [self release];
 
186
      DESTROY(self);
186
187
      return nil;
187
188
    }
188
189
  replace = NSSelectorFromString
316
317
 
317
318
  if (![anObject respondsToSelector: set])
318
319
    {
319
 
      [self release];
 
320
      DESTROY(self);
320
321
      return nil;
321
322
    }
322
323