packages / namespaces

Joined
Apr 2, 2007
Messages
2
Reaction score
0
Hi All,

I'm from a Java background and I wanted to know if there's any concept of packages or namespaces in Objective-C?

I'm working on a personal project and I want to sort my classes in their proper areas (controllers, models, etc).

~gautam
 
Joined
Nov 26, 2010
Messages
3,558
Reaction score
52
It is convention to prefix your Classes with a 2 Character code to protect from Namespace clashes, so don't use one of Apples i.e. NS.

I also append "Controller" to my controller classes.
I keep my model classes in there own Group. (This is like a subfolder).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top