Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am learning Objective-C and iOS development and not sure what proper naming convention should be used. I understand how to use the label aspect of Obj-C methods but not the proper way to name each label. What is the best practice for naming methods, properties, objects, outlets, and actions?

Should different naming conventions be used between Obj-C code and C code? And if so what differences is there?

share|improve this question

closed as off-topic by World Engineer Nov 19 '13 at 23:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking us to recommend a tool, library or favorite off-site resource are off-topic for Programmers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – World Engineer
If this question can be reworded to fit the rules in the help center, please edit the question.

Have you seen Apple's documentation? I am pretty sure they have everything listed out. – BoltClock Jun 20 '12 at 19:33
up vote 7 down vote accepted

Aside from the official Apple guidelines, this guide from Google of all places should help you. For future reference, use the words "idiomatic" and whatever language you need to find stuff.

In quick summary:

Names should be descriptive, not abbreviations, contain the proper prefixes (NS, AB, IB, etc) where applicable, unambiguous, non-self referential and PascalCase.

share|improve this answer
Thank you for the good resources. I did not know Google themselves had such a great resource for programmers. I hadn't looked into the apple docs mainly due to liking examples to reference and what I have seen of apple docs examples are limited. – RMDan Jun 20 '12 at 22:35

Not the answer you're looking for? Browse other questions tagged or ask your own question.