- 浏览: 233253 次
- 性别:
- 来自: 北京
文章分类
- 全部博客 (118)
- Ruby/ROR (4)
- Mac (28)
- 我的见闻触发你我的灵感 (1)
- 创业 (1)
- JOSSO (2)
- XML (2)
- OpenRemote (1)
- 娱乐 (2)
- 版权/License (1)
- Java/Spring (4)
- 调试 (1)
- 路由器 (2)
- 技术博客 (21)
- 虚拟机 (1)
- Javascript (6)
- SVN (2)
- HA(Home Automation) (0)
- Android (2)
- iPhone/iPod (23)
- iPad (22)
- iOS公共 (28)
- Windows7 (1)
- 服务器技术 (2)
- 其它 (1)
- Shell (1)
- 数据库 (1)
- 问题总结 (1)
最新评论
-
zjjzmw1:
...
转载:IOS开发之——objectForKey与valueForKey在NSDictionary中的差异 -
hldfxh:
解决了我的问题
JSON Lib, XML转JSON字符串不要namespace,以及处理特殊xml属性"type" -
herry68:
可以给我提供以下你的这个NSData+Base64.h类吗
图片转base64串及反转回图片 -
herry68:
我用这个方法把图片转换成nsstring成功了,但是从nsst ...
图片转base64串及反转回图片 -
hibluse:
handy.wang 写道hibluse 写道我已经设置了WA ...
基于FMDB-SQLite的App数据库性能优化
Refenced from : http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/ObjectiveC/Introduction/introObjectiveC.html
Introduction to The Objective-C Programming Language
The Objective-C language is a simple computer language designed to enable sophisticated object-oriented programming. Objective-C is defined as a small but powerful set of extensions to the standard ANSI C language . Its additions to C are mostly based on Smalltalk , one of the first object-oriented programming languages. Objective-C is designed to give C full object-oriented programming capabilities, and to do so in a simple and straightforward way.
Most object-oriented development environments consist of several parts:
-
An object-oriented programming language
-
A library of objects
-
A suite of development tools
-
A runtime environment
This document is about the first component of the development environment—the programming language. It fully describes the Objective-C language, and provides a foundation for learning about the second component, the Mac OS X Objective-C application frameworks—collectively known as Cocoa. You can start to learn more about Cocoa by reading <!-- a target="_top" -->Getting Started with Cocoa<!-- /a--> . The two main development tools you use are Xcode and Interface Builder, described in Xcode Workspace Guide and <!-- a target="_top" -->Interface Builder<!-- /a--> respectively. The runtime environment is described in a separate document, Objective-C Runtime Programming Guide .
Important: This document describes the version of the Objective-C language released in Mac OS X v10.6, which introduces the associative references feature (see “Associative References” ). To learn about version 1.0 of the Objective-C language (available in in Mac OS X v10.4 and earlier), read <!-- a target="_top" -->Object Oriented Programming and the Objective-C Programming Language 1.0<!-- /a--> .
Who Should Read This Document
The document is intended for readers who might be interested in:
-
Programming in Objective-C
-
Finding out about the basis for the Cocoa application framework
This document both introduces the object-oriented model that Objective-C is based upon and fully documents the language. It concentrates on the Objective-C extensions to C, not on the C language itself.
Because this isn’t a document about C, it assumes some prior acquaintance with that language. However, it doesn’t have to be an extensive acquaintance. Object-oriented programming in Objective-C is sufficiently different from procedural programming in ANSI C that you won’t be hampered if you’re not an experienced C programmer.
Organization of This Document
This document is divided into several chapters and one appendix.
The following chapters cover all the features Objective-C adds to standard C.
The Apple compilers are based on the compilers of the GNU Compiler Collection
.
Objective-C syntax is a superset of GNU C/C++ syntax, and the
Objective-C compiler works for C, C++ and Objective-C source code. The
compiler recognizes Objective-C source files by the filename extension .m
, just as it recognizes files containing only standard C syntax by filename extension .c
. Similarly, the compiler recognizes C++ files that use Objective-C by the extension .mm
. Other issues when using Objective-C with C++ are covered in “Using C++ With Objective-C.”
The appendix contains reference material that might be useful for understanding the language:
-
“Language Summary” lists and briefly comments on all of the Objective-C extensions to the C language.
Conventions
Where this document discusses functions, methods, and other programming elements, it makes special use of computer voice and italic fonts. Computer voice denotes words or characters that are to be taken literally (typed as they appear). Italic denotes words that represent something else or can be varied. For example, the syntax:
@interface
ClassName
(
CategoryName
)
means that @interface
and the two parentheses are required, but that you can choose the class name and category name.
Where example code is shown, ellipsis points indicates the parts, often substantial parts, that have been omitted:
- (void)encodeWithCoder:(NSCoder *)coder |
{ |
[super encodeWithCoder:coder]; |
... |
} |
The conventions used in the reference appendix are described in that appendix.
See Also
If you have never used object-oriented programming to create applications before, you should read Object-Oriented Programming with Objective-C . You should also consider reading it if you have used other object-oriented development environments such as C++ and Java, since those have many different expectations and conventions from Objective-C. Object-Oriented Programming with Objective-C is designed to help you become familiar with object-oriented development from the perspective of an Objective-C developer. It spells out some of the implications of object-oriented design and gives you a flavor of what writing an object-oriented program is really like.
Runtime
Objective-C Runtime Programming Guide describes aspects of the Objective-C runtime and how you can use it.
Objective-C Runtime Reference describes the data structures and functions of the Objective-C runtime support library. Your programs can use these interfaces to interact with the Objective-C runtime system. For example, you can add classes or methods, or obtain a list of all class definitions for loaded classes.
Objective-C Release Notes describes some of the changes in the Objective-C runtime in the latest release of Mac OS X.
Memory Management
Objective-C supports two environments for memory management: automatic garbage collection and reference counting:
-
Garbage Collection Programming Guide describes the garbage collection system used by Cocoa. (Not available on iPhone—you cannot access this document through the iPhone Dev Center.)
-
Memory Management Programming Guide for Cocoa describes the reference counting system used by Cocoa.
发表评论
-
Mac OS: bin/cp: Argument list too long
2013-02-27 14:31 2793#解决:Mac OS bin/cp: Argument lis ... -
XCODE4.3.2与真机联调时,console里输出中文乱码
2012-07-19 13:34 1269修改项目的scheme的info,把debugger由LLDB ... -
Mac OS X Lion 显示隐藏目录
2012-03-29 13:28 0在Termminal中输入如下命令。 chflag ... -
Mac OS X Lion 显示隐藏目录
2012-03-29 13:23 1074在Termminal中输入如下命令。 chflags noh ... -
How do I fix NSURLErrorDomain error -999 in iPhone 3.0 OS
2011-01-22 21:58 2254Comment1####################### ... -
iPhone系统常用文件夹位置
2010-11-01 19:49 12741、【/Applications】 91是装在这里 ... -
定制UISlider样式时注意
2010-10-31 15:21 1879只设球(ThumbImage)就会没有track; 不设球就没 ... -
一个鲜为人知的秘密---Using Apache and PHP on Mac OS X
2010-09-28 01:15 984NOTE: My MAC OS version is 10.6 ... -
Objective-C中的字符串格式化输出
2010-08-19 14:52 1870Objective-C中的字符串格式化输出 %@ ... -
Focus the "Plus+" for iPhone games' development
2010-08-12 12:58 964location of website: http://plu ... -
ngmoco:) 关注iPhone游戏开发商ngmoco:)
2010-08-12 12:42 1074Website Location: http://www.ng ... -
Is there a better way to handle HTTP error statuses?
2010-05-20 19:04 1422if ([response respondsToSelecto ... -
Install MYSQL in MAC OS X 10.5.8
2010-03-30 16:09 17531)Download MYSQL named mysql-6. ... -
Vertical UISlider in iPhone dev
2010-01-06 20:49 1820Referenced from : http://www.ip ... -
Shell Script Programming
2009-12-19 01:58 937Refrenced from: http://user.it. ... -
Learning Objective-C: A Primer
2009-12-19 01:50 1000Referenced from: http://develop ... -
Introduction to Open Source Scripting on Mac OS X
2009-12-19 01:10 1733From : http://developer.apple.c ... -
Shell tutorial provided by Apple.
2009-12-13 01:33 943Referenced from http://develope ... -
TextMate Bundle for Git
2009-12-13 01:18 1244The article I referenced from i ... -
Installing git (OSX)
2009-12-11 13:10 1220Installing git (OSX) http ...
相关推荐
Introduction to The Objective-C Programming Language An object-oriented approach to application development makes programs more intuitive to design, faster to develop, more amenable to ...
This introduction to programming and the Objective-C language is your first step on the journey from someone who uses apps to someone who writes them. Based on Big Nerd Ranch's popular Objective-C ...
Mac官网中的关于Object-C语言的教程:The Objective-C Programming Language,算最权威的了。 原下载地址: https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ObjectiveC/ObjC.pdf 网页版...
1、Introduction to The Objective-C 2.0 Programming Language 2、Objects and Classes 3、Defining a Class 4、Categories and Extensions 5、Properties 6、Protocols 7、Fast Enumeration 8、How Messaging ...
Readers can also learn the concepts of object-oriented programming without having to first learn all of the intricacies of the underlying C programming language. This unique approach to learning, ...
The book makes no assumptions about prior experience with object-oriented programming languages or with the C language (which Objective-C is based upon). Because of this, both beginners and ...
Part I: The Objective-C Language 2 Programming in Objective-C 3 Classes, Objects, and Methods 4 Data Types and Expressions 5 Program Looping 6 Making Decisions 7 More on Classes 8 Inheritance 9 ...
Readers can also learn the concepts of object-oriented programming without having to first learn all of the intricacies of the underlying C programming language. This unique approach to learning, ...
* A complete course on the basics of Objective-C using Apple's newest Xcode tools * An introduction to object-oriented programming * Comprehensive coverage of new topics like blocks, GCD, ARC, class ...
This book is for anyone who wants to learn to develop applications for the Mac or apps for the iPhone and iPad using the Objective-C programming language. No previous programming experience is ...
Part I The Objective-C Language 2 Programming in Objective-C 3 Classes, Objects, and Methods 4 Data Types and Expressions 5 Program Looping 6 Making Decisions 7 More on Classes 8 ...
英文介绍:Take your coding skills to the next level with this extensive guide to Objective–C, the native programming language for developing sophisticated software applications for Mac OS X. Objective...
2 Programming in Objective-C 7 3 Classes, Objects, and Methods 27 4 Data Types and Expressions 51 5 Program Looping 71 6 Making Decisions 93 7 More on Classes 127 8 Inheritance 151 9 Polymorphism, ...
Stephen Kochan is the author and coauthor of several bestselling titles on the C language, including Programming in C (Sams, 2004), Programming in ANSI C (Sams, 1994), and Topics in C Programming ...
(In fact, in 2012, and as 2013 closed, Objective-C is the third most popular programming language according to the TIOBE index, up from fifth most popular in 2011.) Over the years, we’ve built a lot...
Take your coding skills to the next level with this extensive guide to Objective–C, the native programming language for developing sophisticated software applications for Mac OS X. Objective–C is a ...
Programming in Objective-C 2.0 provides the new programmer a complete, step-by-step introduction to Objective-C, the primary language used to develop applications for the iPhone, iPad, and Mac OS X ...
An Objective-C Class for Working with Fractions 30 The @interface Section 33 Choosing Names 34 Class and Instance Methods 35 The @implementation Section 37 The program Section 39 Accessing Instance ...
Provides essential coverage of Smalltalk origins, syntax, and semantics, a valuable asset for students wanting to understand the hybrid Objective C language Includes a companion disc with source code ...