On 4-Jul-09, at 21:10 , mmalc Crawford wrote:
you should use accessor methods rather than direct variable
manipulation
Would declaring all the variables as properties, and then synthesising
them, take care of this?
If so, what should I do in dealloc for those variables?
For example, suppose I've got this in the header:
NSArray *myArray;
...
@property(retain) NSArray *myArray;
And this in the implementation file:
@synthesize myArray;
Should dealloc have this:
[myArray release];
or something like this:
self.myArray = nil;
Sorry for all these beginner questions; but they will probably prevent
a lot more questions later on.
dkj
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com