What is the best a quickest way to reset an NSMutableArray?
It does now...Thanks!
rson
2009-10-29 14:23:24
Stupidly it appears to actually release the object... What is the point in that? Anyway I got round it by putting a [NSMutableArray retain] just before the removeAllObjects.
Joe
2010-08-27 12:06:38
Joe - in that case, your code is broken. See http://developer.apple.com/mac/library/documentation/cocoa/conceptual/MemoryMgmt/Articles/mmObjectOwnership.html
jdelStrother
2010-08-31 11:44:52
+1
A:
removeAllObjects
if assuming by 'reset', you mean you just want to empty the array.
Tom
2009-10-29 14:21:24