One of the few resources available on C programming in the Macintosh environment, providing detailed discussions and programming examples for both experienced C programmers new to the Mac environment and Macintosh programmers familiar with other languages. Sample code is presented in THINK C.
The new edition of this Macintosh programming bestseller is updated to reflect the many recent changes in both Macintosh hardware and software, including System 7, new versions of THINK C and ResEdit, and the new machines. This is the only book that teaches Macintosh programming at a beginning level.
Many systems today use the C programming language as it is available for most computers This book looks at how to produce C programs to execute on a PC or a MAC computer. It also looks at the Arduino UNO micro controller and describes how to write C programs usng the Arduino 'wired' C functions as well as using standard ANSI C with direct access to the micro controller registers of the Ardunio UNO. This can lead to improved efficiency of the programs. Most of the Hardware available in the Arduino micro controller is described, and programs provided showing how to control and use them. There is a chapter on how to create your own programs and also how to change a program created to execute on the Arduino so that it can run on a different micro controller, such as the Microchip PIC. This allows the Arduino to be used as a rapid prototype system. The book also contains many working program examples with additional workshop exercises for the reader to study.
Presents an introduction to Objective-C, covering such topics as classes and objects, data types, program looping, inheritance, polymorphism, variables, memory management, and archiving.
Takes you through working examples, giving you the core concepts and principles of development in context so that you are ready to build the applications you've been imagining. This title introduces you to Objective-C and the Cocoa framework and demonstrates how you can use them together to write for the Mac, as well as the iPhone and iPod.
Build solid applications for Mac OS X, iPhone, and iPod Touch, regardless of whether you have basic programming skills or years of programming experience. With this book, you'll learn how to use Apple's Cocoa framework and the Objective-C language through step-by-step tutorials, hands-on exercises, clear examples, and sound advice from a Cocoa expert. Cocoa and Objective-C: Up and Running offers just enough theory to ground you, then shows you how to use Apple's rapid development tools -- Xcode and Interface Builder -- to develop Cocoa applications, manage user interaction, create great UIs, and more. You'll quickly gain the experience you need to develop sophisticated Apple software, whether you're somewhat new to programming or just new to this platform. Get a quick hands-on tour of basic programming skills with the C language Learn how to use Interface Builder to quickly design and prototype your application's user interface Start using Objective-C by creating objects and learning memory management Learn about the Model-View-Controller (MVC) method of sharing data between objects Understand the Foundation value classes, Cocoa's robust API for storing common data types Become familiar with Apple's graphics frameworks, and learn how to make custom views with AppKit
THE #1 BESTSELLING BOOK ON OBJECTIVE-C 2.0 Programming in Objective-C 2.0 provides the new programmer a complete, step-by-step introduction to Objective-C, the primary language used to develop applications for the iPhone, iPad, and Mac OS X platforms. The book does not assume previous experience with either C or object-oriented programming languages, and it includes many detailed, practical examples of how to put Objective-C to use in your everyday iPhone/iPad or Mac OS X programming tasks. A powerful yet simple object-oriented programming language that’s based on the C programming language, Objective-C is widely available not only on OS X and the iPhone/iPad platform but across many operating systems that support the gcc compiler, including Linux, Unix, and Windows systems. The second edition of this book thoroughly covers the latest version of the language, Objective-C 2.0. And it shows not only how to take advantage of the Foundation framework’s rich built-in library of classes but also how to use the iPhone SDK to develop programs designed for the iPhone/iPad platform. Table of Contents 1 Introduction Part I: The Objective-C 2.0 Language 2 Programming in Objective-C 3 Classes, Objects, and Methods 4 Data Types and Expressions 5 Program Looping 6 Making Decisions 7 More on Classes 8 Inheritance 9 Polymorphism, Dynamic Typing, and Dynamic Binding 10 More on Variables and Data Types 11 Categories and Protocols 12 The Preprocessor 13 Underlying C Language Features Part II: The Foundation Framework 14 Introduction to the Foundation Framework 15 Numbers, Strings, and Collections 16 Working with Files 17 Memory Management 18 Copying Objects 19 Archiving Part III: Cocoa and the iPhone SDK 20 Introduction to Cocoa 21 Writing iPhone Applications Part IV: Appendixes A Glossary B Objective-C 2.0 Language Summary C Address Book Source Code D Resources
While there are several books on programming for Mac OS X, Advanced Mac OS X Programming: The Big Nerd Ranch Guide is the only one that contains explanations of how to leverage the powerful underlying technologies. This book gets down to the real nitty-gritty. The third edition is updated for Mac OS X 10.5 and 10.6 and covers new technologies like DTrace, Instruments, Grand Central Dispatch, blocks, and NSOperation.