PageRenderTime 18ms CodeModel.GetById 14ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/libs/ObjectAL/Support/NSMutableArray+WeakReferences.h

http://github.com/kstenerud/ObjectAL-for-iPhone
C Header | 36 lines | 7 code | 9 blank | 20 comment | 0 complexity | 6d80529cf27bb764e7320cbff80deb2b MD5 | raw file
 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