Muutke küpsiste eelistusi

E-raamat: Programming in Objective-C

  • Formaat: PDF+DRM
  • Sari: Developer's Library
  • Ilmumisaeg: 18-Nov-2013
  • Kirjastus: Addison-Wesley Educational Publishers Inc
  • Keel: eng
  • ISBN-13: 9780133756876
  • Formaat - PDF+DRM
  • Hind: 28,76 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: PDF+DRM
  • Sari: Developer's Library
  • Ilmumisaeg: 18-Nov-2013
  • Kirjastus: Addison-Wesley Educational Publishers Inc
  • Keel: eng
  • ISBN-13: 9780133756876

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Updated for OS X 10.9 Mavericks, iOS 7, and Xcode 5 Programming in Objective-C is a concise, carefully written tutorial on the basics of Objective-C and object-oriented programming for Apple's iOS and OS X platforms. The book makes no assumptions about prior experience with object-oriented programming languages or with the C language (which Objective-C is based upon). Because of this, both beginners and experienced programmers alike can use this book to quickly and effectively learn the fundamentals of Objective-C. Readers can also learn the concepts of object-oriented programming without having to first learn all of the intricacies of the underlying C programming language. This unique approach to learning, combined with many small program examples and exercises at the end of each chapter, makes Programming in Objective-C ideally suited for either classroom use or self-study. This edition has been fully updated to incorporate new Objective-C features and technologies introduced with Xcode 5, iOS 7, and Mac OS X Mavericks. The best book on any programming language that Ive ever read. If you want to learn Objective-C, buy it.Calvin Wolcott An excellent resource for a new programmer who wants to learn Objective-C as their first programming languagea woefully underserved market.Pat Hughes
1 Introduction
1(6)
What You Will Learn from This Book
2(1)
How This Book Is Organized
3(2)
Support
5(1)
Acknowledgments
5(1)
Preface to the Sixth Edition
6(1)
I The Objective-C Language
2 Programming in Objective-C
7(20)
Compiling and Running Programs
7(1)
Using Xcode
8(8)
Using Terminal
16(2)
Explanation of Your First Program
18(4)
Displaying the Values of Variables
22(3)
Summary
25(1)
Exercises
25(2)
3 Classes, Objects, and Methods
27(24)
What Is an Object, Anyway?
27(1)
Instances and Methods
28(2)
An Objective-C Class for Working with Fractions
30(3)
The @interface Section
33(1)
Choosing Names
34(1)
Class and Instance Methods
35(2)
The @implementation Section
37(2)
The program Section
39(6)
Accessing Instance Variables and Data Encapsulation
45(4)
Summary
49(1)
Exercises
49(2)
4 Data Types and Expressions
51(20)
Data Types and Constants
51(1)
Type int
51(1)
Type float
52(1)
Type char
52(1)
Qualifiers: long, long long, short, unsigned, and signed
53(1)
Type id
54(1)
Arithmetic Expressions
55(1)
Operator Precedence
55(3)
Integer Arithmetic and the Unary Minus Operator
58(2)
The Modulus Operator
60(1)
Integer and Floating-Point Conversions
61(2)
The Type Cast Operator
63(1)
Assignment Operators
64(1)
A Calculator Class
65(2)
Exercises
67(4)
5 Program Looping
71(22)
The for Statement
72(7)
Keyboard Input
79(2)
Nested for Loops
81(2)
for Loop Variants
83(1)
The while Statement
84(5)
The do Statement
89(2)
The break Statement
91(1)
The continue Statement
91(1)
Summary
91(1)
Exercises
92(1)
6 Making Decisions
93(34)
The if Statement
93(5)
The if-else Construct
98(3)
Compound Relational Tests
101(3)
Nested if Statements
104(1)
The else if Construct
105(10)
The switch Statement
115(3)
Boolean Variables
118(5)
The Conditional Operator
123(2)
Exercises
125(2)
7 More on Classes
127(26)
Separate Interface and Implementation Files
127(6)
Synthesized Accessor Methods
133(2)
Accessing Properties Using the Dot Operator
135(2)
Multiple Arguments to Methods
137(2)
Methods without Argument Names
139(1)
Operations on Fractions
139(4)
Local Variables
143(1)
Method Arguments
144(1)
The static Keyword
144(4)
The self Keyword
148(1)
Allocating and Returning Objects from Methods
149(2)
Extending Class Definitions and the Interface File
151(1)
Exercises
151(2)
8 Inheritance
153(26)
It All Begins at the Root
153(4)
Finding the Right Method
157(1)
Extension through Inheritance: Adding New Methods
158(4)
A Point Class and Object Allocation
162(1)
The @class Directive
163(4)
Classes Owning Their Objects
167(4)
Overriding Methods
171(2)
Which Method Is Selected?
173(3)
Abstract Classes
176(1)
Exercises
176(3)
9 Polymorphism, Dynamic Typing, and Dynamic Binding
179(18)
Polymorphism: Same Name, Different Class
179(3)
Dynamic Binding and the id Type
182(2)
Compile Time Versus Runtime Checking
184(1)
The id Data Type and Static Typing
185(1)
Argument and Return Types with Dynamic Typing
186(1)
Asking Questions about Classes
187(5)
Exception Handling Using @try
192(3)
Exercises
195(2)
10 More on Variables and Data Types
197(26)
Initializing Objects
197(3)
Scope Revisited
200(1)
More on Properties, Synthesized Accessors, and Instance Variables
201(1)
Global Variables
202(2)
Static Variables
204(3)
Enumerated Data Types
207(3)
The typedef Statement
210(1)
Data Type Conversions
211(1)
Conversion Rules
212(1)
Bit Operators
213(2)
The Bitwise AND Operator
215(1)
The Bitwise Inclusive-OR Operator
216(1)
The Bitwise Exclusive-OR Operator
216(1)
The Ones Complement Operator
217(1)
The Left-Shift Operator
218(1)
The Right-Shift Operator
219(1)
Exercises
220(3)
11 Categories and Protocols
223(14)
Categories
223(5)
Class Extensions
228(1)
Some Notes about Categories
229(1)
Protocols and Delegation
230(3)
Delegation
233(1)
Informal Protocols
233(1)
Composite Objects
234(1)
Exercises
235(2)
12 The Preprocessor
237(14)
The #def ine Statement
237(2)
More Advanced Types of Definitions
239(5)
The # import Statement
244(1)
Conditional Compilation
245(1)
The #ifdef, #endif, #else, and #ifndef Statements
245(2)
The #if and #elif Preprocessor Statements
247(1)
The #undef Statement
248(1)
Exercises
249(2)
13 Underlying C Language Features
251(56)
Arrays
252(2)
Initializing Array Elements
254(1)
Character Arrays
255(1)
Multidimensional Arrays
256(2)
Functions
258(1)
Arguments and Local Variables
259(2)
Returning Function Results
261(4)
Functions, Methods, and Arrays
265(1)
Blocks
266(4)
Structures
270(3)
Initializing Structures
273(1)
Structures within Structures
274(2)
Additional Details about Structures
276(1)
Don't Forget about Object-Oriented Programming!
277(1)
Pointers
277(4)
Pointers and Structures
281(2)
Pointers, Methods, and Functions
283(1)
Pointers and Arrays
284(10)
Operations on Pointers
294(2)
Pointers and Memory Addresses
296(1)
They're Not Objects!
297(1)
Miscellaneous Language Features
297(1)
Compound Literals
297(1)
The goto Statement
298(1)
The Null Statement
298(1)
The Comma Operator
299(1)
The sizeof Operator
299(1)
Command-Line Arguments
300(2)
How Things Work
302(2)
Fact 1 Instance Variables Are Stored in Structures
303(1)
Fact 2 An Object Variable Is Really a Pointer
303(1)
Fact 3 Methods Are Functions, and Message Expressions Are Function Calls
304(1)
Fact 4 The id Type Is a Generic Pointer Type
304(1)
Exercises
304(3)
II The Foundation Framework
14 Introduction to the Foundation Framework
307(4)
Foundation Documentation
307(4)
15 Numbers, Strings, and Collections
311(66)
Number Objects
311(6)
String Objects
317(1)
More on the NSLog Function
317(1)
The description Method
318(1)
Mutable Versus Immutable Objects
319(7)
Mutable Strings
326(7)
Array Objects
333(5)
Making an Address Book
338(17)
Sorting Arrays
355(7)
Dictionary Objects
362(2)
Enumerating a Dictionary
364(3)
Set Objects
367(4)
NSIndexSet
371(2)
Exercises
373(4)
16 Working with Files
377(30)
Managing Files and Directories: NSFileManager
378(5)
Working with the NSData Class
383(1)
Working with Directories
384(3)
Enumerating the Contents of a Directory
387(2)
Working with Paths: NSPathUtilities h
389(3)
Common Methods for Working with Paths
392(2)
Copying Files and Using the NSProcessInfo Class
394(4)
Basic File Operations: NSFileHandle
398(5)
The NSURL Class
403(1)
The NSBundle Class
404(1)
Exercises
405(2)
17 Memory Management and Automatic Reference Counting
407(12)
Automatic Garbage Collection
409(1)
Manual Reference Counting
409(1)
Object References and the Autorelease Pool
410(2)
The Event Loop and Memory Allocation
412(2)
Summary of Manual Memory Management Rules
414(1)
Automatic Reference Counting
415(1)
Strong Variables
415(1)
Weak Variables
416(1)
@autoreleasepool Blocks
417(1)
Method Names and Non-ARC Compiled Code
418(1)
18 Copying Objects
419(12)
The copy and mutableCopy Methods
419(3)
Shallow Versus Deep Copying
422(2)
Implementing the <NSCopying> Protocol
424(3)
Copying Objects in Setter and Getter Methods
427(2)
Exercises
429(2)
19 Archiving
431(18)
Archiving with XML Property Lists
431(3)
Archiving with NSKeyedArchiver
434(1)
Writing Encoding and Decoding Methods
435(7)
Using NSData to Create Custom Archives
442(4)
Using the Archiver to Copy Objects
446(1)
Exercises
447(2)
III Cocoa, Cocoa Touch, and the iOS SDK
20 Introduction to Cocoa and Cocoa Touch
449(4)
Framework Layers
449(1)
Cocoa Touch
450(3)
21 Writing iOS Applications
453(32)
The iOS SDK
453(1)
Your First iPhone Application
453(3)
Creating a New iPhone Application Project
456(4)
Entering Your Code
460(2)
Designing the Interface
462(7)
An iPhone Fraction Calculator
469(2)
Starting the New Fraction_Calculator Project
471(1)
Defining the View Controller
471(6)
The Fraction Class
477(3)
A Calculator Class That Deals with Fractions
480(2)
Designing the User Interface
482(1)
Summary
483(1)
Exercises
484(1)
Appendixes
A Glossary
485(8)
B Address Book Example Source Code
493(6)
Index 499
Stephen Kochan is the author and coauthor of several bestselling titles on the C language, including Programming in C (Sams, 2004), Programming in ANSI C (Sams, 1994), and Topics in C Programming (Wiley, 1991), and several UNIX titles, including Exploring the Unix System (Sams, 1992) and Unix Shell Programming (Sams, 2003). He has been programming on Macintosh computers since the introduction of the first Mac in 1984, and he wrote Programming C for the Mac as part of the Apple Press Library. In 2003, Kochan wrote Programming in Objective-C (Sams, 2003), and followed that with another Mac-related title, Beginning AppleScript (Wiley, 2004).