Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Objective-C at CocoaHeadsGDL
Search
Juan Pablo Ortiz Aréchiga
March 24, 2012
Programming
1
120
Objective-C at CocoaHeadsGDL
Introduction of Objective-C
Juan Pablo Ortiz Aréchiga
March 24, 2012
Tweet
Share
More Decks by Juan Pablo Ortiz Aréchiga
See All by Juan Pablo Ortiz Aréchiga
Introduction to programming
pablasso
1
74
Objective-C Introduction part2
pablasso
3
140
Objective-C Introduction part1
pablasso
5
170
Other Decks in Programming
See All in Programming
Putting The Genie in the Bottle - A Crash Course on running LLMs on Android
iurysza
0
140
Azure SRE Agentで運用は楽になるのか?
kkamegawa
0
1.9k
個人軟體時代
ethanhuang13
0
320
FindyにおけるTakumi活用と脆弱性管理のこれから
rvirus0817
0
480
知っているようで知らない"rails new"の世界 / The World of "rails new" You Think You Know but Don't
luccafort
PRO
1
100
Improving my own Ruby thereafter
sisshiki1969
1
160
Go言語での実装を通して学ぶLLMファインチューニングの仕組み / fukuokago22-llm-peft
monochromegane
0
120
1から理解するWeb Push
dora1998
7
1.8k
「手軽で便利」に潜む罠。 Popover API を WCAG 2.2の視点で安全に使うには
taitotnk
0
830
HTMLの品質ってなんだっけ? “HTMLクライテリア”の設計と実践
unachang113
4
2.7k
Tool Catalog Agent for Bedrock AgentCore Gateway
licux
6
2.3k
JSONataを使ってみよう Step Functionsが楽しくなる実践テクニック #devio2025
dafujii
1
510
Featured
See All Featured
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
15
1.6k
Automating Front-end Workflow
addyosmani
1370
200k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
A better future with KSS
kneath
239
17k
Designing for humans not robots
tammielis
253
25k
GraphQLとの向き合い方2022年版
quramy
49
14k
Build your cross-platform service in a week with App Engine
jlugia
231
18k
Done Done
chrislema
185
16k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
920
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.4k
Transcript
Objective-C y el desarrollo según Papá Jobs CocoaHeadsGDL viernes 23
de marzo de 12
Un poco de historia • En los 80’s por Brad
Cox y Tom Love • Pre-procesador de C • C + Smalltalk = Obj-C • No muy popular viernes 23 de marzo de 12
¡NeXT al rescate! viernes 23 de marzo de 12
• NeXT al final fue un fracaso • GNU implementó
un compilador libre en los 90’s • Apple compra NeXT, impulsa el lenguaje y sus herramientas. viernes 23 de marzo de 12
Curiosidades de Objective-C • Se puede mezclar con C; puedes
declarar variables primitivas. • Su POO la hereda de Smalltalk • Lenguaje dinámico: runtime detecta tipos de variables • Se maneja con interfaz (.h) e implementación (.m) viernes 23 de marzo de 12
Métodos viernes 23 de marzo de 12
Al estilo de Objective-C: viernes 23 de marzo de 12
Métodos multiparámetros viernes 23 de marzo de 12
Accessors Propiedades y dot syntax al rescate: viernes 23 de
marzo de 12
Creando objetos Autorelease es tu amigo Es tu responsabilidad liberar
la memoria. viernes 23 de marzo de 12
Manejo de memoria viernes 23 de marzo de 12
La interfaz 1 2 3 viernes 23 de marzo de
12
La implementación Los getters viernes 23 de marzo de 12
La implementación Los setters viernes 23 de marzo de 12
La implementación Dealloc es imprescindible en iOS viernes 23 de
marzo de 12
Manejo de memoria reference counting viernes 23 de marzo de
12
Manejo de memoria SIEMPRE que hagas alloc, haz release. viernes
23 de marzo de 12
Debug con NSLog mismas reglas que printf() viernes 23 de
marzo de 12
Propiedades en lugar de esto... viernes 23 de marzo de
12
Propiedades .. esto se manejan en automático por ti viernes
23 de marzo de 12
Propiedades utiliza synthesize en la implementación evita llenar todo de
métodos get y set viernes 23 de marzo de 12
nil es tu amigo siempre cuida la memoria por ti
mismo, pero con nil puedes asegurarte de no tener bloqueos. viernes 23 de marzo de 12
Categorías agrega métodos a una clase existente sin necesidad de
hacer una subclase viernes 23 de marzo de 12
Categorías una vez que importaste la categoría la puedes usar
en cualquier NSString viernes 23 de marzo de 12
Referencias • Google: • “Cocoa Dev Central” • “Stanford iTunes
U” • Aaron Hillegas, Big nerd ranch, Cocoa, viernes 23 de marzo de 12
Gracias twitter.com/pablasso Juan Pablo Ortiz Aréchiga pablasso.com viernes 23 de
marzo de 12