Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Objective-C Coding Standards [iPhone/Cocoa]

Are there any generally-accepted coding standards (naming, casting etc) that apply specifically to iPhone/Cocoa/Objective-C? I know Microsoft has published similar standards as they relate to .Net and C# but haven't run across anything related to the iPhone world.

like image 664
CBGrey Avatar asked Mar 16 '10 14:03

CBGrey


People also ask

Is Objective-C still used for iOS development?

Most of the core iOS and MacOs software is still written in Objective-C, though Apple is pushing for new updates to be written in Swift.

What is cocoa in Objective-C?

Cocoa is a development framework (it's actually an umbrella framework which combines three other frameworks, Foundation, AppKit and CoreData). These frameworks (Cocoa) define all the objects that are nice to use and interact with the operating system, as well as a number of functions.

Is Objective-C for Apple?

Objective-C is the primary programming language you use when writing software for OS X and iOS.

Can you code in C for iOS?

It houses everything you'll need to write code for iOS. Included with XCode is support for Apple's newer Swift programming language, made specifically for iOS and macOS. While Apple is pushing Swift, you can also program iOS in Objective-C.


3 Answers

Introduction to Coding Guidelines for Cocoa

Enjoy!

like image 184
kubi Avatar answered Nov 15 '22 21:11

kubi


Also take a look at Cocoa Style for Objective-C from Cocoa Dev Central

  • Part I
  • Part II
like image 27
Wildcat Avatar answered Nov 15 '22 20:11

Wildcat


Google also has an Objective-C style guide

like image 37
nall Avatar answered Nov 15 '22 21:11

nall