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
Really Simple Cocoa Tips (2007)
Search
Yung-Luen Lan
September 13, 2007
Programming
43
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に働いてもらう話
colorful12
3
10k
デプロイ直後のレイテンシスパイクを調べたら、 Railsの仕様にたどり着いた
nhsykym
0
110
Webプラットフォームで議論されているセキュリティ課題 / Security issues being discussed on Web Platforms
petamoriken
0
400
AI駆動開発にグラフDBを重ねてみた
satoshi256kbyte
2
760
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
460
標準パッケージに uuid が追加された 背景から見る Go らしい意思決定 / go_127_uuid_decision
convto
4
3.8k
LL言語やWebフレームワークのPostgreSQL対応 〜DBの機能がユーザーに届くまで〜
kentaroutakeda
0
150
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
230
変化を抱擁するドキュメントの作り方 - ビジネスルール駆動開発がもたらす、コードとの新しい関係
ioki
2
130
数年滞っていたダークモード対応をおよそ2週間で完了させる
chigichan24
0
690
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
140
From 6 People Classroom Meetup to 100 People Regional Conference / FOSS4G Hiroshima 2026
furukawayasuto
0
130
Featured
See All Featured
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
500
Fireside Chat
paigeccino
42
4k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
3
1.2k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
Technical Leadership for Architectural Decision Making
baasie
3
560
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
690
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
6.2k
Why Your Marketing Sucks and What You Can Do About It - Sophie Logan
marketingsoph
0
400
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
35k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
500
The Spectacular Lies of Maps
axbom
PRO
1
990
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
2.8k
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!