In this section:

Who Should Read This Document
Organization of This Document
Conventions
See Also


An object-oriented approach to application development makes programs more intuitive to design, faster to develop, more amenable to modification, and easier to understand. Most object-oriented development environments consist of at least three parts:

This document is about the first component of the development environment—the programming language and its runtime environment. 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 Getting Started with Cocoa. The two main development tools you use are Xcode and Interface Builder, described in Xcode User Guide and Interface Builder respectively.

Important: This document describes version 2.0 of the Objective-C language which is released with Mac OS X v10.5. Several new features are introduced in this version, including properties (see “Properties”), fast enumeration (see “Fast Enumeration”), optional protocols, and (on 64-bit platforms) non-fragile instance variables. These features are not available on versions of Mac OS X prior to 10.5. If you use these features, therefore, your application cannot run on versions of Mac OS X prior to 10.5. To learn about version 1.0 of the Objective-C language, read Object Oriented Programming and the Objective-C Programming Language 1.0.

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.

For those who have never used object-oriented programming to create applications before, this document is also designed to help you become familiar with object-oriented development. 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.

Who Should Read This Document

The document is intended for readers who might be interested in:

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 two appendixes.

The following chapters describe the Objective-C language They cover all the features that the language adds to standard C and C++. These chapters present the language, but also touch on important elements of the runtime system.

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 Runtime System” looks at the NSObject class and how Objective-C programs interact with the runtime system. In particular, it examines the paradigms for managing object allocations, dynamically loading new classes at runtime, and forwarding messages to other objects.

The appendixes contain reference material that might be useful for understanding the language. They are:

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:

@interfaceClassName(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

Object-Oriented Programming with Objective-C describes object-oriented programming and development from the perspective of an Objective-C developer.

Objective-C 2.0 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.

Garbage Collection Programming Guide describes the garbage collection system used by Objective-C.

Objective-C Release Notes describes some of the changes in the Objective-C runtime in the latest release of Mac OS X.


fuente: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/index.html
)( parentesys.es )( La cultura al alcance de todos )
     mi cuenta
 Portada   Artículos   Informática   Buscador de Informática  

Introduction to The Objective-C 2.0 Programming Language
Fecha de publicación: 2007-11-14 02:11:34, por admin   (visto: 583 veces)   (a 0 personas les ha gustado)
Fuente:


 
    


© parentesys.es - Todos los Derechos Reservados


Opiniones sobre el artículo
 No hay opiniones. Sé el primero en escribir sobre este artículo.

Escribe tu comentario
Tu nombre: [obligatorio]
Título: [obligatorio]
Tu sitio web: (escríbelo con http://) [opcional]
Tu email: (lo mantendremos privado) [obligatorio]
Contenido: [obligatorio]
Código de seguridad anti-spam:*  
  

 Escucha música mientras lees


 ...más Informática

La herramienta perfecta para promocionar tu tienda, restaurante, comercio, local o cualquier tipo de negocio en Internet.
syrope ha sido creado con el objetivo de incrementar tus ventas en Internet y ayudarte a promocionar tus productos fácilmente.
(por admin)

H.264 y HTML5, cuando todo comienza a tener sentido
Luego de leer una serie de artículos veo que se está perfilando algo en el universo de la web, lo primero es la intención deliberada de ciertos participantes a tener el más absoluto control sobre lo que hacemos y, por otra parte, el descubrir que de hecho ya lo tienen.
(por fabio.com.ar)

CONVERTIR CARACTERES UTF-8 EN PHP
A veces podemos sentir la imperiosa necesidad de jugar con la codificación de caracteres, cierto, pero en la mayoría de las ocasiones, y si se es programador más si cabe, nos veremos impelidos a actuar so pena de abroncamiento o melancolía.
(por Adrián Martínez Buleo)

Escribir archivos Excel con PHP
Vamos a ver como generar archivos excel desde PHP de una manera muy sencilla.
(por Oscar Hernández Caballero)

Calendario y selección de intervalo de fechas en Javascript
Módulo para implementar un calendario y una ventana de selección de intervalo de fechas en cualquier web. Hecho en javascript.
(por Oscar Hernández Caballero)

Restar dias a una fecha en mysql
La siguiente consulta selecciona todos los registros dentro de los últimos 7 días
(por admin)

¿Donde encuentro los archivos hosts, httpd.conf, php.ini en MAC?
Guía rápida para saber cómo encontrar algunos archivos fundamentales en el desarrollo de aplicaciones en entorno MAC OSX
(por Oscar Hernández Caballero)

Cuanto cuesta una web
Si te consideras un poco perdido en cuanto a pedir presupuestos para tu web, este artículo puede despejarte algunas dudas.
(por admin)

Leer archivos EXCEL en PHP
Aquí tenemos la manera de leer archivos formato Excel con PHP. El código de este artículo está probado y optimizado.
(por Oscar Hernández Caballero)

Eliminar lista de usuarios del Messenger
Habrás observado que, si tu PC ha sido utilizado por varias personas para acceder a MSN Messenger, los emails de todos ellos se quedan guardados. Si deseas que estos usuarios desaparezcan debes hacer lo siguiente.
(por admin)

Motores de almacenamiento de MySQL y tipos de tablas
MySQL soporta varios motores de almacenamiento que tratan con distintos tipos de tabla. Los motores de almacenamiento de MySQL incluyen algunos que tratan con tablas transaccionales y otros que no lo hacen.
(por admin)