Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

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?

Also,
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.

2  
Have you seen Apple's documentation? I am pretty sure they have everything listed out. –  BoltClock Jun 20 '12 at 19:33
add comment

1 Answer

up vote 6 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
add comment

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