In chapter 7 of Learning Cocos2D (Viking game book) It says:
From what the book is saying, this is an ObjC thing not a Cocos2D thing, which makes sense as Cocos2D is not it's own language.
So, when do you guys actually use Private vs Public methods?
It seems like maybe ObjC only wants you to use public methods because it doesn't directly support private methods.
In fact, this is the 1st book that has actually covered this.
Objective-C does not have explicit support for private class methods: any methods you declare in your header file are considered public methods.
In order to have private methods, you need to include their declarations
in the .m implementation file in an @interface section before the @implementation section.
From what the book is saying, this is an ObjC thing not a Cocos2D thing, which makes sense as Cocos2D is not it's own language.
So, when do you guys actually use Private vs Public methods?
It seems like maybe ObjC only wants you to use public methods because it doesn't directly support private methods.
In fact, this is the 1st book that has actually covered this.