Do I need getters and setters if i'm depending on garbage collection in objective-c
Posted
by Chris
on Stack Overflow
See other posts from Stack Overflow
or by Chris
Published on 2010-04-02T08:37:25Z
Indexed on
2010/04/02
8:43 UTC
Read the original article
Hit count: 564
New to Cocoa and Objective-c.
Do I need getters and setters if I'm depending on garbage collection?
For example is it safe to just modify instance variables directly without the dot syntax?
And in the dealloc method can I sent them to nil instead of release (or do I even have to release them)?
© Stack Overflow or respective owner