1 // Copyright (c) 2011 Google Inc. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #import <Cocoa/Cocoa.h> 6 7 #ifdef __cplusplus 8 struct ObjCVectorImp; 9 #else 10 typedef struct _ObjCVectorImpT ObjCVectorImp; 11 #endif 12 13 @interface ObjCVector : NSObject { 14 @private 15 ObjCVectorImp* imp_; 16 } 17 18 - (id)init; 19 20 - (void)addObject:(id)obj; 21 - (void)addObject:(id)obj atIndex:(NSUInteger)index; 22 23 - (void)removeObject:(id)obj; 24 - (void)removeObjectAtIndex:(NSUInteger)index; 25 26 - (id)objectAtIndex:(NSUInteger)index; 27 28 @end 29