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
LoopHub - ローカルで動く GitHub で、AI と共同開発
jugyo
1
480
Building an Out-of-Order CPU
latte72
1
740
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
110
DroidKaigi 2026 「個人開発という実験場: Android エンジニアが手にする4つの自由」
slashnephy
0
230
Deep dive into the select statement (GopherCon UK)
jespino
0
170
Gmail/Google DriveをトリガーにAIエージェントを動かそう! / Run AI agents with Gmail/Google Drive as triggers!
har1101
3
490
個人開発基盤をまるごとCloudflareに引っ越して爆速で総合的体験を向上させた話
tinykitten
0
140
思考垂れ流し開発 ~音声入力 × AIエージェント × 開発ハーネスによる試行錯誤~
npostring
0
1k
WebMCP Challenge に星空観察アプリで参加した話
okajun35
0
120
新人はどこまで自力でやり、どこからAIに頼るべきか/エンジニア育成に向き合う_先輩たちの悩みと知見共有会
toppan_digital_dev
1
590
不幸な GC
chencmd
0
890
AIを上手に使っていこうとしたら越境せざるを得なくなった話 〜実践1年で見えた境界を越えなければならない理由と進め方〜 / Crossing borders with AI
tomoyakitaura
4
1.1k
Featured
See All Featured
How to Grow Your eCommerce with AI & Automation
katarinadahlin
PRO
1
270
The World Runs on Bad Software
bkeepers
PRO
72
12k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
A designer walks into a library…
pauljervisheath
211
25k
Mobile First: as difficult as doing things right
swwweet
225
10k
How to make the Groovebox
asonas
2
2.4k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
1
2.9k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.4k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
3k
[SF Ruby Conf 2025] Rails X
palkan
2
1.4k
Future Trends and Review - Lecture 12 - Web Technologies (1019888BNR)
signer
PRO
0
3.7k
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!