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
130
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
76
Objective-C Introduction part2
pablasso
3
140
Objective-C Introduction part1
pablasso
5
170
Other Decks in Programming
See All in Programming
AIエージェント、”どう作るか”で差は出るか? / AI Agents: Does the "How" Make a Difference?
rkaga
4
2k
AIによる開発の民主化を支える コンテキスト管理のこれまでとこれから
mulyu
3
300
AgentCoreとHuman in the Loop
har1101
5
240
並行開発のためのコードレビュー
miyukiw
0
210
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
余白を設計しフロントエンド開発を 加速させる
tsukuha
7
2.1k
20260127_試行錯誤の結晶を1冊に。著者が解説 先輩データサイエンティストからの指南書 / author's_commentary_ds_instructions_guide
nash_efp
1
980
15年続くIoTサービスのSREエンジニアが挑む分散トレーシング導入
melonps
2
210
Patterns of Patterns
denyspoltorak
0
1.4k
AIフル活用時代だからこそ学んでおきたい働き方の心得
shinoyu
0
140
疑似コードによるプロンプト記述、どのくらい正確に実行される?
kokuyouwind
0
390
CSC307 Lecture 04
javiergs
PRO
0
660
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.1k
Darren the Foodie - Storyboard
khoart
PRO
2
2.4k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2k
Speed Design
sergeychernyshev
33
1.5k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
380
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.2k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
78
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
910
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
430
Intergalactic Javascript Robots from Outer Space
tanoku
273
27k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
3.6k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
260
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