Objective-C Language - Overview

  1. Tác giả: LTTK CTV
    Đánh giá: ✪ ✪ ✪ ✪ ✪

    Objective-C is general-purpose language that is developed on top of C Programming language by adding features of Small Talk programming language making it an object-oriented language. It is primarily used in developing iOS and Mac OS X operating systems as well as its applications.
    Initially, Objective-C was developed by NeXT for its NeXTSTEP OS from whom it was taken over by Apple for its iOS and Mac OS X.
    Object-Oriented Programming

    Fully supports object-oriented programming, including the four pillars of object-oriented development:
    • Encapsulation
    • Data hiding
    • Inheritance
    • Polymorphism
    Example Code

    Mã (Javascript):
    1. #import <Foundation/Foundation.h>
    2.  
    3. int main (int argc, const char * argv[])
    4. {
    5.    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
    6.  
    7.    NSLog (@"hello world");
    8.    [pool drain];
    9.    return 0;
    10. }
    Foundation Framework

    Foundation Framework provides large set of features and they are listed below.
    • It includes a list of extended datatypes like NSArray, NSDictionary, NSSet and so on.
    • It consists of a rich set of functions manipulating files, strings, etc.
    • It provides features for URL handling, utilities like date formatting, data handling, error handling, etc.
    Learning Objective-C

    The most important thing to do when learning Objective-C is to focus on concepts and not get lost in language technical details.
    The purpose of learning a programming language is to become a better programmer; that is, to become more effective at designing and implementing new systems and at maintaining old ones.
    Use of Objective-C

    Objective-C, as mentioned earlier, is used in iOS and Mac OS X. It has large base of iOS users and largely increasing Mac OS X users. And since Apple focuses on quality first and its wonderful for those who started learning Objective-C.

    Lession List
    • Basic Objective-C
      • Objective-C - Environment Setup
      • Objective-C - Program Structure
      • Objective-C - Basic Syntax
      • Objective-C - Data Types
      • Objective-C - Variables
      • Objective-C - Constants
      • Objective-C - Operators
      • Objective-C - Loops
      • Objective-C - Decision Making
      • Objective-C - Functions
      • Objective-C - Blocks
      • Objective-C - Numbers
      • Objective-C - Arrays
      • Objective-C - Pointers
      • Objective-C - Strings
      • Objective-C - Structures
      • Objective-C - Preprocessors
      • Objective-C - Typedef
      • Objective-C - Type Casting
      • Objective-C - Log Handling
      • Objective-C - Error Handling
      • Command-Line Arguments
    • Advanced Objective-C
      • Objective-C - Classes & Objects
      • Objective-C - Inheritance
      • Objective-C - Polymorphism
      • Objective-C - Data Encapsulation
      • Objective-C - Categories
      • Objective-C - Posing
      • Objective-C - Extensions
      • Objective-C - Protocols
      • Objective-C - Dynamic Binding
      • Objective-C - Composite Objects
      • Obj-C - Foundation Framework
      • Objective-C - Fast Enumeration
      • Obj-C - Memory Management
    • Useful Resources
      • Objective-C - Quick Guide
      • Objective-C - Useful Resources
      • Objective-C - Discussion
     

    Xem các chủ đề cùng chuyên mục