views:

102

answers:

1
+1  A: 

I see that you declared your array to be private in the header file, therefore you shouldn't access the property from outside of the class.

brutella
True, the instance variable is private, but the setter and getter methods should still be public I think (i.e. the synthesized methods in the implementation). I could be wrong, but I don't think this is problem.
darren
Yeah, I also think it has nothing to do with the @private...
Rafael Rodrigues
Right, I've tried this with an example and the setter/getter methods were created. I don't see the problem but one important thing to note: you shouldn't retain the sortedRegions variable in the createRegions method because it's already autoreleased
brutella
Brutella, ok, sorry, this code retain was me trying to solve the problem. The actual code there was release...
Rafael Rodrigues
Brutella, The code worked for you?
Rafael Rodrigues
No, I didn't tried your code, I've tried to set a variable private and synthesizing the setter/getter methods - that worked for me ;)
brutella