Sunday, October 11, 2009

Objective C

Protocols - set of functions we need to implement if we need messages from the object?

Anonymous Object - id class loosely typed

Selectors - ?

What is the difference between ObjectiveC and Cocoa?

Object C is a language and Cocoa is Apples implementation of some classes in Objective C language.

Object hierarchy in Cocoa

NSObject is the promordial class.
It takes care of memory management

UIControl inherits from NSObject and it takes care of ?

All other UI classes inherit from UIControl.

Outlets - Target Actions

Controller objects have outlets that are pointers to instances of GUI Objects like slider and Button. These GUI Objects havd target actions as a method to the object referring to them.
Action/Invoke.

IDEA

ROI Application

Cocoa Touch Architecture

UI Kit
User Interface Elements
Application Runtime
Event Handling
Hardware APIs

Foundation
Utility Classes
Collection Classes
Object Wrappers for system services
Subset of Foundation in Cocoa

IPHONE OS Architecture Layer Services

Core OS
OS X Kernel
Mach 3.0?
BSD?
Sockets
Security
Power management
KeyChain
Certificates
File System
Bonjour - to communicate with local devices

Core Services (Written in C )
Collections
Address Book
Networking
File Access
SQLite
Core Location
Net Services
Threading (POSIX Threading?)
Preferences
URL Utilities

Media
Core Audio
Open AL
Audio Mixing
Audio Recording
Video Playback
JPG,PNG,TIFF
PDF
Quartz(2D)
Core Animation
OpenGL ES

Cocoa Touch
Multi touch events
Multi touch controls
Accelerometer
View Hierarchy
Localization
Alerts
Web views
People picker
Image picker
Controllers


ARCHITECTURE LAYERS

MAC OS X

Core OS
Core Services
Media
Cocoa


IPHONE OS

Core OS
Core Services
Media
Cocoa Touch

The MACOS and IPHONE OS are similar excep the user interface features like iphone ha no mouse and the menu bar.


Verbiology

Tools
XCODE
INTERFACE BUILDER

Frameworks
FOUNDATION
UIKIT

Language
OBJECTIVE C

COCOA

Application Development framework?

IDEA to a PROTOTYPE to an APP.

IDEA to a prototype made easy with a development framework.




http://cs193p.stanford.edu
http://devforums.apple.com

Source

PODCAST VIDEOS from ITUNESU - Stanford Unversity CS193P