Added by on 2013-06-20

http://www.E-String.com Intro to Objective-C Tutorial So now lets do an overview of Objective-C. We can’t cover all the details in depth but we’ll touch on the important parts that you’ll need right away. There’s a list of online tutorials, documentation and books that cover Objective-C in detail at the end of this video and in the notes. There is also a Person sample project that uses many of the concepts from this video and the previous one. Objective-C itself is a simple elegant language that is really just a thin layer on top of C. It is compiled and fast which makes it perfect for low powered devices and its dynamic which makes it flexible for programmers. Its a super set of C so you can mix in C and C++ and reuse any code you have in iOS projects. It definitely looks different than other languages. In particular objective C uses square brackets on the outside of method calls instead of parentheses around the parameters. I admit its a little odd but its just one of those things that was done a long time ago and after a while you’ll get used to it. Object oriented programming is all about grouping methods with the related data into little bundles called objects. Classes are like blueprints that define what goes into an object and every time we want a new copy of that object we create a new instance. Every object gets its own copy of the data, its own copy of the variables specified by the class. Methods implement behavior are also specified in the class and are available for all objects of that class. You can then send an object a message to invoke a method which operates on that individual objects data.

Category:

Objective-C

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*