Online Book Reader

Home Category

Learn Objective-C on the Mac - Mark Dalrymple [0]

By Root 901 0
Table of Contents

Title Page

Copyright Page

Foreword

About the Authors

About the Technical Reviewer

Acknowledgements

Preface

Chapter 1 - Must Love Cocoa

Get a Mac and Download the Tools

Download the Source Code

Getting Help

What You Need to Know Before You Begin

Are You Ready?

Chapter 2 - Hello, World

Building “Hello, World”

Exploring the Nib File

The Library

Dragging Out a Label

Using the Blue Guidelines

The Inspector Window

The Attributes Inspector

Change the Label’s Color and Font

Using the Menu Editor

Creating Your Application Icon

Adding Your Icon to Your Project

Property Lists

Running Your Application

Sharing Your Creation With the World

Goodbye, Hello World

Chapter 3 - Lights, Camera… Actions! (and Outlets, Too)

This Chapter’s Application

Frameworks, Frameworks Everywhere

The Cocoa Way: Model-View-Controller

Outlets, Actions, and Controllers

Outlets and Actions in Action

Implementing the Action Method

The Application Delegate

Bring It on Home

Chapter 4 - GUI Components

Creating the VillainTracker Application

Building Your Interface

Getting Started with Coding

In Conclusion

Chapter 5 - Using Table Views

Preparing AppController for Multiple Villains

Making Way for the Table View

Tweaking the Autosizing Characteristics

Making Some New Connections

Making Way for the Table View: Code Edition

The Table View Needs Your Help

Adding and Deleting Villains

In Conclusion

Chapter 6 - Cocoa Bindings

Binding to Simple Controls

Binding to NSUserDefaultsController

Create the Main Window

Binding to a Table View

Show History in Tables

Okay, But How Did That Work?

In Conclusion

Chapter 7 - Core Data Basics

What You’ve Been Missing

Creating MythBase

Exploring the Template Code

Adding Business Logic

In Conclusion

Chapter 8 - Core Data Relationships

Modeling New Entities and Relationships

Updating the GUI

Wrapping Up Relationships

Chapter 9 - Search and Retrieve Core Data with Criteria

Creating QuoteMonger

Limiting Results with NSPredicate

User-Defined Predicates

In Conclusion

Chapter10 - Windows and Menus and Sheets

NSWindow and NSPanel

System Menus

Wrap-up

Chapter11 - Document-Based Applications

Creating the ColorMix Application

Setting Two Colors

Settling on a File Format

Adding Color

About Undo and Redo

In Conclusion

Chapter12 - Exceptions, Signals, Errors, and Debugging

Exception Handling

Worse than Exceptions: Death by Signal

In Conclusion

Chapter13 - Drawing in Cocoa

Fundamentals

Creating an NSView Subclass

LOLmaker

Printing Basics

Wrapping Up

Chapter14 - Advanced Drawing Topics

Editing a Curve

Core Animation: A Primer

What Have We Done?

Chapter15 - Working with Files

Implicit File Access

Filing It All Away

Chapter16 - Concurrency

SlowWorker

Threading Basics

Vitalizing SlowWorker

GCD: Low-Level Queuing

A Little Concurrency Goes a Long Way

Chapter17 - Future Paths

More Cocoa-isms

Ported Cocoa

Here at the End of All Things

Index

Learn Cocoa on the Mac

Copyright © 2010 by Jack Nutting, David Mark and Jeff LaMarche

All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage or retrieval system, without the prior written permission of the copyright owner and the publisher.

ISBN-13 (pbk): 978-1-4302-1859-3

ISBN-13 (electronic): 978-1-4302-1860-9

Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1

Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, we use the names only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.

President

Return Main Page Next Page

®Online Book Reader