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.
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.
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.
Objective-C is the primary programming language you use when writing software for OS X and 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.
Introduction to Coding Guidelines for Cocoa
Enjoy!
Also take a look at Cocoa Style for Objective-C from Cocoa Dev Central
Google also has an Objective-C style guide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With