06.08.2012 Views

Fugenx Technologies Private Limited

Fugenx Technologies Private Limited

Fugenx Technologies Private Limited

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Category<br />

@implementation NSMutableArray (MYAdditions)<br />

// Adds useful methods to mutable arrays<br />

- (void)addObjectIfAbsent:(id)anObject<br />

// Adds anObject to the receiver if and only if anObject is not<br />

// nil and already contained by receiver<br />

{<br />

if((nil != anObject) && ![self containsObject:anObject]) {<br />

[self addObject:anObject];<br />

}<br />

@end<br />

© 2011, FuGenX <strong>Technologies</strong> Confidential<br />

29

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!