Back to 编程语言

See Also Xcode

Objective-C

Objective-C是苹果操作系统(MAC OS X/iOS)及其相关 API(Cocoa/Cocoa Touch)的主要编程语言。它是C语言的超集(a superset of ANSI C )并提供面向对象的功能和动态运行。Objective-C语言继承了C的语法、基本类型(primitive types)和流程控制语句,并增加了定义类和方法的语法。它还在语言级上增加了对象管理的支持(图像和文字),同时提供动态类型和动态绑定,把许多责任推迟了运行时。

1. Objective-C功能概览

Objective-C Feature Availability Index

1.1. Cocoa and Cocoa Touch

尽管框架与语言是分离的,但Objective-C的许多语言级功能依赖于Cocoa/Cocoa Touch的类提供的行为。

1.2. 由对象构成的应用

An App Is Built from a Network of Objects

1.3. 利用分类(Category)进行扩展

Categories Extend Existing Classes

扩展没有源代码的类

1.4. 利用协议(Protocol)定义消息约束

Protocols Define Messaging Contracts

在类的外面实现方法

1.5. 对象和集合

Values and Collections Are Often Represented as Objective-C Objects

Cocoa中的对象(NSString/NSNumber)和集合(NSArray/NSSet/NSDictionary)

1.6. Block

Blocks Simplify Common Tasks

Grand Central Dispatch (GCD)

1.7. 运行时错误处理

Error Objects Are Used for Runtime Problems

1.8. 编码规范

Objective-C Code Follows Established Conventions

2. Getting Start

iOS学习

https://developer.apple.com/library/mac/referencelibrary/GettingStarted/RoadMapOSX/chapters/01_Introduction.html

根据这张路线图,开始Mac Apps开发之旅!

Objective-C语法介绍

在XCode上开始的第一份代码

Programming with Objective-C学习笔记

3. 其它说明

Xcode最低要求: 4.4

OS X 最低要求: v10.7

iOS 最低要求: 5

3.1. 入门课程

4. Library

4.1. GNUstep

GNU/Linux based distributions

4.2. Cocoa

MAC OS X

iOS: Cocoa Touch

5. Reference


CategoryiOS CategorymacOS

MainWiki: Objective-C (last edited 2013-10-15 17:37:39 by twotwo)