Search code examples
objective-cxcodensmutablearrayinitalloc

NSMutableArray alloc and init not working properly


I've been coding for a while now but seem to be getting this issue regularly which never occurred before. When trying to init arrays / dictionaries they always show as empty even though I'm sure they are being initialised correctly.

Screenshot of error

This is simply an NSMutableArray which I @property (nonatomic, retain) and @synthesize. Can anyone tell me why this would be happening as I've noticed it happening in places where it wasn't before. Could this simply be the prediction/intellisense displaying incorrect information, and if so how can I fix it?

Thanks in advanced, Elliott


Solution

  • Try to type po self.pickerObjects in console (and Enter). Xcode may not show actual info sometimes. You code looks good, i think it's just an Xcode glitch).