/libs/ObjectAL/Support/NSMutableArray+WeakReferences.h
C Header | 36 lines | 7 code | 9 blank | 20 comment | 0 complexity | 6d80529cf27bb764e7320cbff80deb2b MD5 | raw file
Possible License(s): Apache-2.0
1// 2// MutableArray-WeakReferences.h 3// 4// Created by Karl Stenerud on 05/12/09. 5// 6 7#import <Foundation/Foundation.h> 8 9 10/** 11 * Adds to NSMutableArray the ability to create an array that keeps weak references. 12 */ 13@interface NSMutableArray (WeakReferences) 14 15/** Create an NSMutableArray that uses weak references. 16 */ 17+ (id) mutableArrayUsingWeakReferences; 18 19/** Create an NSMutableArray that uses weak references. 20 * 21 * @param capacity The initial capacity of the array. 22 */ 23+ (id) mutableArrayUsingWeakReferencesWithCapacity:(NSUInteger) capacity; 24 25/** Create an NSMutableArray that uses weak references (no pending autorelease). 26 */ 27+ (id) newMutableArrayUsingWeakReferences; 28 29/** Create an NSMutableArray that uses weak references (no pending autorelease). 30 * 31 * @param capacity The initial capacity of the array. 32 */ 33+ (id) newMutableArrayUsingWeakReferencesWithCapacity:(NSUInteger) capacity; 34 35 36@end