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
Really Simple Cocoa Tips (2007)
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Yung-Luen Lan
September 13, 2007
Programming
41
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Really Simple Cocoa Tips (2007)
Yung-Luen Lan
September 13, 2007
More Decks by Yung-Luen Lan
See All by Yung-Luen Lan
我搞不懂浮點數
yllan
0
1k
struct Drift: Bicycle, Swift
yllan
0
1.5k
Other Decks in Programming
See All in Programming
AI 輔助遺留系統現代化的經驗分享
jame2408
1
1k
エンジニア向け会社紹介/Findy Company Profile
findyinc
6
350k
Dataformのリポジトリを立ち上げるときにまずやること / dataform-day0-2026
snhryt
0
190
ローカルLLMでどこまでコードが書けるか -拡張版 / How much code can be written on a local LLM Extended
kishida
12
4.4k
OSもどきOS
arkw
0
590
軽量Java基盤の設計 DIコンテナに頼らない、長期保守と1秒起動の実現 JJUG CCC 2026 Spring
macha64
0
590
鹿野さんに聞く!『TypeScriptコードレシピ集』で磨く実践力
tonkotsuboy_com
4
850
スマートグラスで並列バイブコーディング
hyshu
0
260
生成AI時代にこそ効くGo | Why Go Works in the Age of Generative AI
mom0tomo
8
3.3k
AI駆動開発を妨げる技術的負債の解消アプローチ / ai-refactoring-approach
minodriven
15
7.3k
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
120
AIを活用したE2Eテスト実装効率化のあゆみ / ebisu-mobile-14-kotetu
kotetuco
0
130
Featured
See All Featured
Bash Introduction
62gerente
615
220k
The Mindset for Success: Future Career Progression
greggifford
PRO
0
370
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
850
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.7k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
240
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.6k
A Soul's Torment
seathinner
6
3k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
210
Redefining SEO in the New Era of Traffic Generation
szymonslowik
1
350
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
180
Transcript
Really Simple Cocoa Tips (But save your life!) by yllan,
Sept. 13, 2007
Coverage Common mistakes. Handy code snippets. Tools setting / hotkey
/ usage. తɿઅলੜ໋ʂ
Compile Cocoa using gcc gcc something.m -o something -framework Cocoa
Save: 2 hours of try & error
[[NSObject alloc] init] ؆ሜʂ [NSObject new] Save: 2 secs each
time
NSString, தจʁ Save: 2 hour in your life
NSString, தจʁ NSString *s = @”தจ” ???? Save: 2 hour
in your life
NSString, தจʁ NSString *s = @”தจ” ???? Tiger ؐෆೳṜᒬሜ... Save:
2 hour in your life
NSString, தจʁ NSString *s = @”தจ” ???? Tiger ؐෆೳṜᒬሜ... NSString
*s = [NSString stringWithUTF8String: “தจ”]; Save: 2 hour in your life
NSString, தจʁ NSString *s = @”தจ” ???? Tiger ؐෆೳṜᒬሜ... NSString
*s = [NSString stringWithUTF8String: “தจ”]; ߋత㭎๏ੋ์ࡏ Localized Resource ཫʂ Save: 2 hour in your life
NSLog, தจʁ ᘃᘃṜݸఔࣜత Output ੋṫɿ #import <Cocoa/Cocoa.h> int main() {
NSAutoreleasePool *pool = [NSAutoreleasePool new]; NSLog(@"%@", @"Hello, world."); NSLog(@"%@", [NSString stringWithUTF8String: "ੈք㟬"]); NSLog(@"%@", [NSString stringWithUTF8String: "͓ݩؾͰ͕͢?"]); NSLog(@"%@", [NSString stringWithUTF8String: "bonjour."]); [pool release]; return 0; }
NSLog, தจʁʢ᠃ʣ ༻ fprintf ҃ऀ֬อแؚӳจ ࣈݩʂ Save: 5 hours of
debugging
Accessor? Xcode Script Menu! TextMate: acc stracc objacc Save: 5
mins each time tab tab tab
ࡏ७จࣈఔࣜ༻ Cocoa ᙘᅷ Save: 3 hours of googling
ࡏ७จࣈఔࣜ༻ Cocoa ᙘᅷ NSApplicationLoad() Save: 3 hours of googling
NSImage ࡏᅲதੜ Autorelease ݅ᩋهԱᱪര䷘ʂ Save: 1 hour of debugging, 5
mins for googling
NSImage ࡏᅲதੜ Autorelease ݅ᩋهԱᱪര䷘ʂ Save: 1 hour of debugging, 5
mins for googling
NSImage ࡏᅲதੜ Autorelease ݅ᩋهԱᱪര䷘ʂ Save: 1 hour of debugging, 5
mins for googling
Xcode Speedup Save: 2 secs each time
Xcode Speedup Turn it off! Save: 2 secs each time
Xcode Hotkey opt esc +
Xcode Hotkey opt esc + Auto-Complete Save: 10 secs each
time
Xcode Hotkey opt esc + Auto-Complete ctrl . + Cycle-Through
Save: 10 secs each time
Xcode Hotkey ctrl / + Jump to next placeholder Save:
1.5 secs each time
Xcode Hotkey opt shift ⌘ ? = Help ⌘ opt
= Jump to definition / declaration = Look up in Apple Reference Library Save: 10 secs each time
__MyCompanyName__ ? defaults write com.apple.Xcode PBXCustomTemplateMacroDefinitions '{ "ORGANIZATIONNAME" = "My
Company";}' or edit: /Library/Application Support/Apple/Developer Tools Save: 1 mins for googling OR 4 hours of searching your HD manually
Interface Builder ߇੍ݩ݅ଠଟʁᙟࡏҰى બ౸ཁతʁผྃ ༗ Hierarchy View: Save: 1 min
Interface Builder Resizeɿ 䇪Ӫ࣌҈ஶ Ctrl Մᩋ Resize ९कኧខઃఆʂ Save: 30
secs each time
Interface Builder Make Subview of... Save: 5 mins of try
& error
Interface Builder Make Subview of... Save: 5 mins of try
& error
Interface Builder Make Subview of... Save: 5 mins of try
& error
Interface Builder Hotkey ༗༻ʂ ⌘ 1ʙ5 Save: 3.1415926 secs each
time
FileMerge ՄҎൺሣၷݸ㑚తෆಉ೭႔ʂ Save: 10 minutes each time
FileMerge ՄҎൺሣၷݸ㑚తෆಉ೭႔ʂ Save: 10 minutes each time
FileMerge ՄҎൺሣၷݸ㑚తෆಉ೭႔ʂ Save: 10 minutes each time
Thank You!