Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Objective-C at CocoaHeadsGDL
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Juan Pablo Ortiz Aréchiga
March 24, 2012
Programming
130
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Objective-C at CocoaHeadsGDL
Introduction of Objective-C
Juan Pablo Ortiz Aréchiga
March 24, 2012
More Decks by Juan Pablo Ortiz Aréchiga
See All by Juan Pablo Ortiz Aréchiga
Introduction to programming
pablasso
1
85
Objective-C Introduction part2
pablasso
3
150
Objective-C Introduction part1
pablasso
5
180
Other Decks in Programming
See All in Programming
Streamlitで実現する自然言語データアプリ開発
ayumu_yamaguchi
1
330
モジュールの視点からSwiftを読み解く #iosdc
s_shimotori
0
300
AWS CDKのカスタムリソースでContinuum(旧Security Agent)を実装した話 | Implementing Continuum (formerly Security Agent) via AWS CDK Custom Resource
akihisaikeda
2
120
Findy - エンジニア向け会社紹介/Findy Company Deck
findyinc
6
400k
速習iPhone Duo対応
yuukiw00w
2
930
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
470
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
210
Java 27新機能 / Java 27 new features
kishida
2
190
iOSDC2026登壇資料.pdf
riofujimon
0
200
Security issues being discussed on Web Platforms
petamoriken
0
1.4k
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
120
SREの越境 / SRE Collaboration
y0hgi
2
290
Featured
See All Featured
The SEO Collaboration Effect
kristinabergwall1
1
580
30 Presentation Tips
portentint
PRO
1
410
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.2k
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
340
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
1
550
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
The agentic SEO stack - context over prompts
schlessera
0
950
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.1k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
GitHub's CSS Performance
jonrohan
1033
470k
Designing for humans not robots
tammielis
254
26k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.3k
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