Objc oddities
October 1, 2008 . Posted in objective c.
1. All methods are public. It is up to the developer to come up with some naming strategy / convention to mark methods as non-public. Apple don't have this problem since they have reserved the methods beginning with _ to themselves…
2. Dot notation is not recommended for accessing properties in most objc coding conventions. No further comments on this one.
3. A NSString can be mutable. So make sure you always copy a string rather than retain it. So when declaring a string poperty do somthing like this:
@property(copy, nonatomic) NSString *myStringProperty;
4. Throwing exception is poor practice. If the code uses C++ elements it is possible that memory does not get released. See Google ObjC Style Guide
So what would you want to see in the next objc release? What would make Objective C more lovable?
Cheers…

Anonymous on October 1, 2008 - 2:21 pm
shudnt u be on the beach on a lovely day like this?