![]() |
00001 00002 // Copyright © 2013 Cathexis Innovations Inc. All rights reserved. 00003 00004 #import <Foundation/Foundation.h> 00005 00010 @interface ObjectCollection : NSObject { 00011 // Array to hold the objects 00012 NSMutableArray* _objects; 00013 } 00014 00020 -(BOOL) addObject: (id) object; 00021 00025 -(int) addObjects: (ObjectCollection*) objects; 00026 00032 -(BOOL) removeObject: (id) object; 00033 00039 -(BOOL) removeObjectAtIndex: (int) index; 00040 00044 -(int) removeAllObjects; 00045 00051 -(BOOL) hasObject: (id) object; 00052 00058 -(int) indexOfObject: (id) object; 00059 00064 -(int) count; 00065 00072 -(id) objectAtIndex: (int) index; 00073 00074 @end