I have an application that has an array of 5 objects. These objects are all of a custom class. The next iteration of the loop and after some modifications to a temporary array I run a check to see if the values are the same or different by using isEqualToArray. However, the minute I do that I get an EXC_BAD_ACCESS. Is there something that I need to implement in the class to prevent this from happening.
Without giving away too much information the custom class only stores 5 NSString* variables.
Sounds like your NSString variables have been released and your accessing bad memory.
Do you remove them from the array? Or do you possibly create them with autorelease semantics, put them into the array and then release them too?
Maybe post a little more code and we can tell you exactly what is wrong, but more than likely they have been released.
You can turn on NSZombieEnabled to see exactly what is being ‘badly accessed’