The Mac Xcode 2 Book
Read an Excerpt: Chapter 1: “Hello,World!” Version 48,345,093.1
Excerpt provided courtesy of Wiley Publications.
|
Be the First to Write a Review and tell the world about this title!People who purchase this book frequently purchase: - Beginning Mac OS X Programming; Michael Trent, et al, $24.95, 38% Off!
- Mac OS X Tiger for Unix Geeks, 3rd Edition; Brian Jepson, et al, $21.95, 37% Off!
- The Mac OS X Tiger Book; Andy Ihnatko, $16.50, 34% Off!
- Learning Unix for Mac OS X Tiger, 4th Edition; Dave Taylor, $12.95, 35% Off!
Books on similar topics, in best-seller order:Books from the same publisher, in best-seller order:
Learn the code. Astound your friends.
Yours free with every Tiger — a to-die-for package of sophisticated software
development tools called Xcode. Whether you're already immersed in soft- ware
development or just considering a dip in the programming pool, Xcode lets you
create applica- tions, plug-ins, applets, utilities, extensions, and much more.
And here, liberally laced with irre- sistible fun facts and foolishness, is
a complete crash course in Xcode. You're gonna love it.
Trust us.
- Build your first application right away
- Understand Xcode's built-in compilers, program editor, and debugger
- See how Xcode speaks your favorite language
- Meet the Interface Builder and some classy data modeling tools
"Chock-full of delicious hints, tips, and details. Informative and enjoyable
from cover to cover!"
—Mike Rossetti, Staff Engineer, Intuit QuickBooks Mac Engineering Team,
ClubMacApp
"You have the makings of a hero, you know . . .
"This is a great time to be a Macintosh programmer. Sure, software developers
have always been lionized as the true heroes of society — their movements
obsessively tracked in gossip magazines, their achievements recognized in almost
obscenely extravagant red-carpet awards telecasts.
"But Apple's own Xcode gives today's programmers unprecedented advantages.
Xcode does it all. The system that allows a curious newbie to add a few buttons
and menus to an existing AppleScript is the exact same one that Apple uses to
build the next version of the Macintosh operating system. Today, we're all playing
in either the deep or the shallow end of the same pool. Awesome, isn't it?"
—Andy Ihnatko
Table of Contents
PART I: The IDE of the Tiger 1.
Chapter 1: "Hello, World!"
You Have Installed Xcode, Haven't You?
The Project Assistant Has A Nice Bow tie!
Getting In Your Face.
Hooking Up.
A Little TypeCasting .
Do You Feel Lucky? Well Do You?
The Lessons of Hello, World!
Chapter 2: Shopping for Projects at the Builders' Emporium'.
Make Me One With Everything.
Coo-coo For Cocoa Apps.
We Are Billion-Year-old Carbon.
Java is East of Krakatoa.
Frameworks and Plug-ins and Tools, Oh, My!
Checking the Receipt.
Chapter 3: Look in Any (Project) Window.
Picture the Window .
Groups, Smart and Otherwise.
Aiming at a target.
How Do I Build Thee?
We Call the Tasks Button "Big Red".
411 on Speed Dial: Getting Info.
Search and Ye Shall Find.
What We Saw.
PART II: Code Mountain
Chapter 4: Compiler? I Hardly Know Her!
A Little Background Reading.
The Designer Compiler Collection.
gcc, or, I GNU a C Compiler once...
Third-Party Hearty.
Compiling for Your Old xS.
Work You Don't Have to Do.
Under Cocoa's umbrella.
Carbon's umbrella casts only a little shade.
Back End.
Chapter 5: Living In the Editor.
It Came In Through the Editing Window.
How Do I Open Files? Let Me Count the Ways...
Split-View Editors Are Paneful.
Shhh...The Editor Is Embed.
You Can Get There From Here.
State Your Preferences.
What We Covered.
Chapter 6: Practical Magic: Editing Features.
What Color Is Your Syntax?
External Editors Are vi-ing for Your Affection.
You Know What I Mean Before I Finish Saying It: Code Completion.
Automagic Formatting.
#Pragma-tic Landmarks.
Call It Macro-roni.
In Short.
Chapter 7: Reference Works While You Play.
Reading While You Write.
I Spy an API.
The Searching General's Report.
The Free Mark It System.
man Overboard.
Back Cover Copy.
Chapter 8: Still Yet Even More Preferences.
More General.
More Fonts.
More File Types.
More Paths.
More Key Bindings.
More Documentation.
More Geeky.
More To Come.
PART III:Drag-and-Drop Dead Gorgeous.
Chapter 9: Interface Builder and The Widgets of Aqua.
His Nibs Has Resources.
Cocoa versus Carbon Interface Objects.
Interface Building Is A Real Drag.
The basic windows.
Layout tools, part one.
Adding windows.
Adding menus.
Layout tools, part two.
Other palettes.
Message Therapy.
Carboniferous communication.
Cocoa confections.
Test Driving the Interface.
The 142-word recap.
Chapter 10: Hanging Out with the Supermodelers.
A Touch of Class Modeling.
Model Making 101.
How to Data Model.
Model Making 102.
How Our Date went.
PART IV: If You Build It, It May Run.
Chapter 11: Doing It Old School in Carbon.
I Got a C++ in Programming.
It All Depends.
Status Symbols.
Totally RAD-ical Techniques.
Build Log.
Chapter 12: Cocoa is the NeXT Big Thing.
Cocoa With a Marshmallow On Top.
It All Depends.
Status Symbols.
Totally RADical Techniques.
Build Log.
Chapter 13: Java Nice Day.
So Many Brews.
Cocoa-Figure covered Espresso Beans.
I Take My Java Black.
Ant No Big Deal.
Filtering the Grounds.
Chapter 14: The Studio System: Building an AppleScript Application.
An Obvious Example: Hello, World, in AppleScript.
Beyond Ask and Answer.
Cocoa-flavored AppleScript.
Wrap Party.
Chapter 15: Mixing Languages in Crossover Country.
Drinking Cocoa By the C++ Side.
Who Put Carbon In My Cocoa?
The Eight-Dollar Question.
The Final Mix.
PART V:Of Cat Herding and Flea Baths: DeBugging, Optimizing, and Version Control.
Chapter 16: Avoiding Falling Anvils and Other Crashes.
GDB, or, I GNU a Debugger, Once, Too.
The Debug window.
The Debug menu.
Breakpoints.
The Fix (and Continue) Is In.
How Not To Lose Your Memory.
Debugging at a Distance.
Debugging Debriefing.
Chapter 17: Shave And A Haircut, 64 Bits: Optimization Tools.
Free Samples.
Sampler.
Spin Control.
What's Going On Right Now?
CHUD for the Defense.
Performance Monitoring, or, Are You Going To Be In There Long?
Curtain Call.
Chapter 18: Eliminating Version Perversion.
The Cure for Versionitis.
Some SCM Terms.
Setting SCM up in Xcode.
Subversive Behavior.
What's the Diff?
Compare.
Diff.
Annotate.
Making Commitments.
Update.
Commit.
Add.
Remove.
We Check Out.
PART VI:Appendixes.
Appendix A: The Xcode Developer's Diet.
The Basic SDKs.
Specialized SDKs.
New to Tiger.
Appendix B: Avoiding Migrate Headaches.
Migrating from CodeWarrior.
Migrating Other Kinds of Projects.
About the Authors
Michael E. Cohen has picked Apples throughout his 25-year career as a teacher,
programmer, multimedia designer, Webmaster, and writer.
Dennis R. Cohen has been programming since punch cards. Now on his 12th Mac,
he has authored, coauthored, or contributed to more than 30 books.
Andy Ihnatko, self-described as America's 42nd Most-Beloved Industry Figure,
is the Chicago Sun-Times' technology columnist and the totally irreverent blogger
at www.andyi.com.
|