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
46
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
IBM Bob Dojo #1 仕様駆動開発入門
oniak3ibm
PRO
0
390
作れる、でも消せるか?──安全に「枯らして消す」機能削除術 / Drain, Then Delete
chobishiba
2
630
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
5
5.1k
[Dev Group Paris Octobre 26] Agentforce, SIforce, Claudeforce, Slackbot… on s'y retrouve ?
nabondance
0
110
C#の現在地 進化の歴史と、AI時代の.NET Everywhere
neuecc
5
5.2k
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
880
The Rails Doctrine Decade
koic
2
590
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
350
phperだってパンチカードでコーディングしたい
o0h
PRO
0
330
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
270
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
180
Featured
See All Featured
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
550
エンジニアに許された特別な時間の終わり
watany
109
250k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2k
Deep Space Network (abreviated)
tonyrice
0
370
Utilizing Notion as your number one productivity tool
mfonobong
4
620
Claude Code どこまでも/ Claude Code Everywhere
nwiizo
68
59k
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
460
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
33
5.2k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
990
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!