What would be the best way to access an NSMutableArray and its associated objects from within a different class? Should I write accessor methods to return the components I need or can I somehow assign a pointer to it from within the class I need to access it from?
+1
A:
this is pretty dependent upon the situation. I personally favor properties for stuff like this. You can just declare an @property, and then @synthesize it in the implementation file. Very little code.
Ben Gottlieb
2010-02-13 14:23:55