Objective-C 2.0 Summary

Source: Internet
Author: User
Tags bitwise operators type casting variable scope

Directory

  1. About objective-C essenins

    • Why are you reading this?
    • Supported platforms
  2. The history of objective-C
    • The C Programming Language
    • The Smalltalk Programming Language
    • C meets Smalltalk
    • Objective-C and Apple
  3. Installing xcode and compiling objective-C on Mac OS X
    • Installing xcode on Mac OS X
    • Starting xcode
    • Starting a new project
    • Writing an objective-C application with xcode
    • Compiling objective-C from the command line
  4. Installing and using gnustep and objective-C on Windows
    • Downloading the gnustep packages
    • Installing mingw and gnustep on Windows
    • Running the gnustep Shell
    • Testing the installation
  5. Installing and using gnustep and objective-C on Linux
    • Installing gnustep on Ubuntu
    • Compiling objective-C code
  6. Building and installing gnustep on Linux
    • Installing GCC and objective-C support on Linux
    • Package Dependencies
    • Obtaining the gnustep source code
    • Refreshing the Build Process
    • Building gnustep
    • Testing the objective-C and gnustep Installation
    • Compiling objective-C code
  7. Objective-C 2.0 Data Types
    • Int Data Type
    • Char Data Type
    • Special characters/escape sequences
    • Float Data Type
    • Double Data Type
    • ID data type
    • Bool Data Type
    • Objective-C data type qualifiers
    • Long
    • Long long
    • Short
    • Signed/unsigned
  8. Working with variables and constants in objective-C
    • What is an objective-C variable
    • What is an objective-C constant?
    • Type Casting objective-C Variables
  9. Objective-C operators and expressions
    • What is an expression?
    • The basic assignment operator
    • Objective-C Arithmetic Operators
    • Compound assignment operators
    • Increment and Decrement Operators
    • Comparison Operators
    • Boolean logical operators
    • The ternary Operator
    • Bitwise operators
    • Bitwise AND
    • Bitwise OR
    • Bitwise XOR
    • Bitwise left shift
    • Bitwise right shift
    • Compound bitwise operators
  10. Objective-C 2.0 operator precedence
    • An example of objective-C operator precedence
    • Objective-C operator precedence and associativity
    • Overriding operator precedence
  11. Commenting objective-C code
    • Why comment your code?
    • Single line comments
    • Multi-line comments
  12. Objective-C Flow Control with IF and Else
    • Using the if statement
    • Using IF... else... statements
    • Using IF... else if... statements
    • Summary
  13. The objective-C switch statement
    • Why use a switch statement?
    • Using the switch statement syntax
    • A switch statement example
    • Explaining the example
    • Combining case statements
  14. Objective-C looping-The for statement
    • Why use loops?
    • Objective-C loop variable scope
    • Creating an infinite for Loop
    • Breaking out of a For Loop
    • Nested for Loops
    • Breaking from nested loops
    • Continuing for Loops
    • Using for loops with multiple variables
  15. Objective-C looping with do and while statements
    • The objective-C WHILE LOOP
    • Objective-C do... while Loops
    • Breaking from Loops
    • The continue statement
  16. An overview of objective-C Object Oriented Programming
    • What is an object?
    • What is a class?
    • Declaring an objective-C class implementation
    • Adding instance variables to a class
    • Define class methods
    • Declaring an objective-C class implementation
    • Declaring, initializing and releasing a class instance
    • Calling methods and accessing instance data
    • Creating the program section
    • Bringing it all together
    • Structuring object-oriented objective-C code
  17. Writing objective-C class methods
    • Instance and class methods
    • Creating a new class Method
    • The @ interface Section
    • The @ implementation section
    • The main () function
  18. Objective-C-Data encapsulation, synthesized accessors
    And dot notation

    • Data encapsulation
    • Synthesized accessor methods
    • Direct access to encapsulated data
    • Objective-C and dot notation
    • Controlling access to instance variables
  19. Objective-C inheritance
    • Inheritance, classes and subclasses
    • An objective-C inheritance example
    • Extending the functionality of a subclass
    • Overriding inherited methods
  20. Pointers and indirection in objective-C
    • How variables are stored
    • An overview of indirection
    • Indirection and objects
    • Indirection and object copying
  21. Objective-C dynamic binding and typing with the ID type
    • Static typing vs dynamic typing
    • Dynamic binding
    • Polymorphism
  22. Objective-C variable scope and Storage Class
    • Variable Scope
    • Block Scope
    • Function Scope
    • GLOBAL SCOPE
    • File Scope
    • Variable Storage Class
  23. An overview of objective-c Functions
    • What is a function?
    • How to declare an objective-c Function
    • Calling an objective-c Function
    • Function prototypes
    • Function scope and the static specifier
    • Static variables in Functions
  24. Objective-C enumerators
    • Why use enumerators
    • Declaring an enumeration
    • Creating and using an enumeration
    • Enumerators and variable names
  25. An overview of the objective-C foundation framework
    • The foundation framework
    • Including the foundation Headers
    • Finding the foundation framework documentation
  26. Working with string objects in objective-C
    • Strings without nsstring
    • Declaring constant string objects
    • Creating mutable and immutable string objects
    • Getting the length of a string
    • Copying a string
    • Searching for a substring
    • Replacing parts of a string
    • String search and replace
    • Deleting sections of a string
    • Extracting a subsection of a string
    • Inserting text into a string
    • Appending text to the end of a string
    • Comparing strings
    • Checking for string prefixes and suffixes
    • Converting to upper or lower case
    • Converting strings to numbers
    • Converting a String object to ASCII
  27. Understanding objective-C number objects
    • Creating and initializing nsnumber objects
    • Getting the value of a number object
    • Comparing number objects
    • Getting the number object value as a string
  28. Working with objective-C array objects
    • Mutable and immutable Arrays
    • Creating an array object
    • Finding out the number of elements in an array
    • Accessing the elements of an array object
    • Accessing array elements using fast Enumeration
    • Adding Elements to an array object
    • Inserting elements into an array
    • Deleting elements from an array object
    • Sorting array objects
  29. Objective-C dictionary objects
    • What are dictionary objects?
    • Creating dictionary objects
    • Initializing and adding entries to a dictionary object
    • Getting an entry count
    • Accessing dictionary entries
    • Removing entries from a dictionary object
  30. Working with directories in objective-C
    • The objective-C nsfilemanager, nsfilehandle and nsdata classes
    • Understanding pathnames in objective-C
    • Creating an nsfilemanager Instance Object
    • Identifying the current working directory
    • Changing to a different directory
    • Creating a new directory
    • Deleting a directory
    • Renaming or moving a directory
    • Getting a directory file listing
    • Getting the attributes of a file or directory
  31. Working with files in objective-C
    • Creating an nsfilemanager instance
    • Checking if a file exists
    • Comparing the contents of two files
    • Checking if a file is readable/writable/executable/deletable
    • Moving/renaming a file
    • Copying a file
    • Removing a file
    • Creating a symbolic link
    • Reading and Writing files with nsfilemanager
    • Working with files using the nsfilehandle class
    • Creating an nsfilehandle object
    • Nsfilehandle file offsets and seeking
    • Reading data from a file
    • Writing data to a file
    • Truncating a file
  32. Constructing and manipulating paths with nspathutilities
    • The anatomy of a path
    • Finding a temporary directory
    • Getting the current user's home directory
    • Getting the Home Directory of a specified user
    • Extracting the filename from a path
    • Extracting the filename extension
    • Standardizing a path
    • Extracting the components of a path
  33. Copying objects in objective-C
    • Objects and pointers
    • Copying an object in objective-C using the <nscopying> Protocol
    • <Nscopying> protocol and copywithzone method implementation
    • Ming a deep copy
  34. Using objective-C Preprocessor directives
    • The # define statement
    • Creating macros with the # define statement
    • Changing the objective-C language with # define
    • Undefining a definition with # UNDEF
    • Conditional compilation
    • The # import directive
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.