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
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
Transcript
26 slides
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
More Decks by Juan Pablo Ortiz Aréchiga
See All by Juan Pablo Ortiz Aréchiga
Introduction to programming
pablasso
1
93
Objective-C Introduction part2
pablasso
3
160
Objective-C Introduction part1
pablasso
5
180
Other Decks in Programming
See All in Programming
Kiro Crewによる開発体験ーKiro CrewでStrands Decider 2B に関する技術検証をやってみた
satoshi256kbyte
1
150
エージェントの管理もエージェントに – herdr-core と自作バックログで作る司令塔 –
nearme_tech
PRO
2
150
Lean で手続き的プログラム の証明が書けるようになった
inoueasei
8
3.5k
Compiling Your Language to WasmGC & Friends
tanishiking
0
200
ビジネスロジックを堅牢に~Scala 3のドメインプリミティブ~
j5ik2o
0
230
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
120
The Cost of the DOM
ypresto
2
420
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
340
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
Augmenting AI with the Power of Jakarta EE
ivargrimstad
0
170
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
Featured
See All Featured
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
What's in a price? How to price your products and services
michaelherold
247
13k
How to Ace a Technical Interview
jacobian
280
24k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
690
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
560
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Building Adaptive Systems
keathley
44
3.3k
Automating Front-end Workflow
addyosmani
1370
210k
My Coaching Mixtape
mlcsv
0
400
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.9k
Product Roadmaps are Hard
iamctodd
55
13k