Programming in Objective-C: [updated for Xcode 4.5 and iOS 6]
Gespeichert in:
Beteilige Person: | |
---|---|
Format: | Buch |
Sprache: | Englisch |
Veröffentlicht: |
Upper Saddle River, NJ [u.a.]
Addison-Wesley
2013
|
Ausgabe: | 5. ed. |
Schriftenreihe: | Developer's library
|
Schlagwörter: | |
Links: | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=025298227&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
Beschreibung: | Previous ed.: 2012. - Includes index |
Umfang: | XV, 532 S. Ill. |
ISBN: | 9780321887283 032188728X |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV040450561 | ||
003 | DE-604 | ||
005 | 20130110 | ||
007 | t| | ||
008 | 121001s2013 xx a||| |||| 00||| eng d | ||
015 | |a GBB279344 |2 dnb | ||
020 | |a 9780321887283 |c pbk |9 978-0-321-88728-3 | ||
020 | |a 032188728X |c pbk |9 0-321-88728-X | ||
035 | |a (OCoLC)815940521 | ||
035 | |a (DE-599)BVBBV040450561 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-91G | ||
084 | |a DAT 364f |2 stub | ||
100 | 1 | |a Kochan, Stephen G. |d 1955- |e Verfasser |0 (DE-588)112553346 |4 aut | |
245 | 1 | 0 | |a Programming in Objective-C |b [updated for Xcode 4.5 and iOS 6] |c Stephen G. Kochan |
250 | |a 5. ed. | ||
264 | 1 | |a Upper Saddle River, NJ [u.a.] |b Addison-Wesley |c 2013 | |
300 | |a XV, 532 S. |b Ill. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a Developer's library | |
500 | |a Previous ed.: 2012. - Includes index | ||
650 | 4 | |a Objective-C (Computer program language) | |
650 | 4 | |a Object-oriented programming (Computer science) | |
650 | 0 | 7 | |a Programmiersprache |0 (DE-588)4047409-4 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a C |g Programmiersprache |0 (DE-588)4113195-2 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Objective-C |0 (DE-588)4335874-3 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Objektorientierung |0 (DE-588)4346172-4 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Objektorientierte Programmierung |0 (DE-588)4233947-9 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Objective-C |0 (DE-588)4335874-3 |D s |
689 | 0 | |5 DE-604 | |
689 | 1 | 0 | |a Objektorientierte Programmierung |0 (DE-588)4233947-9 |D s |
689 | 1 | 1 | |a C |g Programmiersprache |0 (DE-588)4113195-2 |D s |
689 | 1 | |5 DE-604 | |
689 | 2 | 0 | |a Programmiersprache |0 (DE-588)4047409-4 |D s |
689 | 2 | 1 | |a Objektorientierung |0 (DE-588)4346172-4 |D s |
689 | 2 | |8 1\p |5 DE-604 | |
856 | 4 | 2 | |m HBZ Datenaustausch |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=025298227&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
883 | 1 | |8 1\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk | |
943 | 1 | |a oai:aleph.bib-bvb.de:BVB01-025298227 |
Datensatz im Suchindex
DE-BY-TUM_call_number | 0102 DAT 364f 2011 A 5190(5) |
---|---|
DE-BY-TUM_katkey | 1875717 |
DE-BY-TUM_location | 01 |
DE-BY-TUM_media_number | 040071474327 |
_version_ | 1821935050449485824 |
adam_text | Titel: Programming in Objective-C
Autor: Kochan, Stephen G
Jahr: 2013
Contents
Contents at a Glance
1 Introduction l
I: The Objective-C Language
2 Programming in Objective-C 7
3 Classes, Objects, and Methods 27
4 Data Types and Expressions 51
5 Program Looping 71
6 Making Decisions 93
7 More on Classes 127
8 Inheritance 153
9 Polymorphism, Dynamic Typing, and Dynamic Binding 179
10 More on Variables and Data Types 197
11 Categories and Protocols 223
12 The Preprocessor 237
13 Underlying C Language Features 251
II: The Foundation Framework
14 Introduction to the Foundation Framework 307
15 Numbers, Strings, and Collections 311
16 Working with Files 377
17 Memory Management and Automatic Reference Counting 407
IS Copying Objects 419
19 Archiving 431
111: Cocoa, Cocoa Touch, and the iOS SDK
20 Introduction to Cocoa and Cocoa Touch 449
21 Writing iOS Applications 453
Contents
Appendixes
A Glossary 487
B Address Book Example Source Code 495
Index 501
2
Table of Contents
1 Introduction 1
What You Will Learn from This Book
How This Book Is Organized 3
Support 5
Acknowledgments 5
Preface to the Fifth Edition 6
I: The Objective-C Language
2 Programming in Objective-C 7
Compiling and Running Programs 7
Using Xcode 8
Using Terminal 16
Explanation of Your First Program 18
Displaying the Values of Variables 22
Summary 25
Exercises 25
3 Classes, Objects, and Methods 27
What Is an Object, Anyway? 27
Instances and Methods 28
An Objective-C Class for Working with Fractions 30
The ®interf ace Section 33
Choosing Names 34
Class and Instance Methods 35
The ®implementation Section 37
The program Section 39
Accessing Instance Variables and Data Encapsulation 45
Summary 49
Exercises 49
4 Data Types and Expressions 51
Data Types and Constants 51
Type int SI
Type float 52
Contents
Type char 52
Qualifiers: long, long long, short, unsigned, and
signed 53
Type id 54
Arithmetic Expressions 55
Operator Precedence 55
Integer Arithmetic and the Unary Minus Operator 58
The Modulus Operator 60
Integer and Floating-Point Conversions 61
The Type Cast Operator 63
Assignment Operators 64
A Calculator Class 65
Exercises 67
Program Looping 71
The for Statement 72
Keyboard Input 79
Nested for Loops 81
for Loop Variants 83
The while Statement 84
The do Statement 89
The break Statement 91
The continue Statement 91
Summary 91
Exercises 92
Making Decisions 93
The if Statement 93
The if-else Construct 98
Compound Relational Tests 101
Nested if Statements 104
The else if Construct 105
The switch Statement 115
Boolean Variables 118
The Conditional Operator 123
Exercises 125
Contents
More on Classes 127
Separate Interface and Implementation Files 127
Synthesized Accessor Methods 133
Accessing Properties Using the Dot Operator 135
Multiple Arguments to Methods 137
Methods without Argument Names 139
Operations on Fractions 139
Local Variables 143
Method Arguments 144
The static Keyword 144
The self Keyword 148
Allocating and Returning Objects from Methods 149
Extending Class Definitions and the Interface File 151
Exercises 151
8 Inheritance 153
ft AH Begins at the Root 153
Finding the Right Method 157
Extension through Inheritance: Adding New Methods 158
A Point Class and Object Allocation 162
The ©class Directive 163
Classes Owning Their Objects 167
Overriding Methods 171
Which Method Is Selected? 173
Abstract Classes 176
Exercises 176
9 l«yinorphlsm,Dynamte Typing, and Dynamic Binding 179
Polymorphism: Same Name, Different Class 179
Dynamic Binding and the id Type 182
Compile Time Versus Runtime Checking 184
The id Data Type and Static Typing 185
A^ment and Reh»rn Types witt, Dynamic Typing 186
AsWng Questions about Classes 187
Exception Handling Using ®try 192
Exercises 195
Contents
10 More on Variables and Data Types 197
Initializing Objects 197
Scope Revisited 200
Directives for Controlling Instance Variable Scope 200
More on Properties, Synthesized Accessors, and Instance
Variables 202
Global Variables 203
Static Variables 205
Enumerated Data Types 207
The typedef Statement 211
Data Type Conversions 212
Conversion Rules 212
Bit Operators 214
The Bitwise AND Operator 215
The Bitwise Inclusive-OR Operator 216
The Bitwise Exclusive-OR Operator 217
The Ones Complement Operator 217
The Left-Shift Operator 219
The Right-Shift Operator 219
Exercises 220
11 Categories and Protocols 223
Categories 223
Class Extensions 228
Some Notes about Categories 229
Protocols and Delegation 230
Delegation 233
Informal Protocols 233
Composite Objects 234
Exercises 235
12 The Preprocessor 237
The #def ine Statement 237
More Advanced Types of Definitions 239
The # import Statement 244
Contents
Conditional Compilation 245
The #ifdef, #endif, #else, and ttifndef Statements 245
The #if and #elif Preprocessor Statements 247
The #undef Statement 248
Exercises 249
13 Underlying C Language Features 251
Arrays 252
Initializing Array Elements 254
Character Arrays 255
Multidimensional Arrays 256
Functions 258
Arguments and Local Variables 259
Returning Function Results 261
Functions, Methods, and Arrays 265
Blocks 266
Structures 270
Initializing Structures 273
Structures within Structures 274
Additional Details about Structures 276
Don t Forget about Object-Oriented Programming! 277
Pointers 277
Pointers and Structures 281
Pointers, Methods, and Functions 283
Pointers and Arrays 284
Operations on Pointers 294
Pointers and Memory Addresses 296
They re Not Objects! 297
Miscellaneous Language Features 297
Compound Literals 297
The goto Statement 298
The Null Statement 298
The Comma Operator 299
The sizeof Operator 299
Command-Line Arguments 300
Contents
How Things Work 302
Fact 1: Instance Variables Are Stored in Structures 303
Fact 2: An Object Variable Is Really a Pointer 303
Fact 3: Methods Are Functions, and Message Expressions Are Function
Calls 304
Fact 4: The id Type Is a Generic Pointer Type 304
Exercises 304
II: The Foundation Framework
14 Introduction to the Foundation Framework 307
Foundation Documentation 307
15 Numbers, Strings, and Collections 311
Number Objects 311
String Objects 317
More on the NSLog Function 317
The description Method 318
Mutable Versus Immutable Objects 319
Mutable Strings 326
Array Objects 333
Making an Address Book 338
Sorting Arrays 355
Dictionary Objects 361
Enumerating a Dictionary 364
Set Objects 367
NSIndexSet 371
Exercises 373
16 Working with Files 377
Managing Files and Directories: NSFileManager 378
Working with the NSData Class 383
Working with Directories 384
Enumerating the Contents of a Directory 387
Working with Paths: NSPathUtilities .h 389
Common Methods for Working with Paths 392
Copying Files and Using the NSProcessInf o Class 394
xiv Contents
Basic File Operations: NSFileHandle 398
The NSURL Class 403
The NSBundle Class 404
Exercises 405
17 Memory Management and Automatic Reference Counting 407
Automatic Garbage Collection 409
Manual Reference Counting 409
Object References and the Autorelease Pool 410
The Event Loop and Memory Allocation 412
Summary of Manual Memory Management Rules 414
Automatic Reference Counting 415
Strong Variables 415
Weak Variables 416
autoreleasepool Blocks 417
Method Names and Non-ARC Compiled Code 418
18 Copying Objects 419
The copy and mutableCopy Methods 419
Shallow Versus Deep Copying 422
Implementing the NSCopying Protocol 424
Copying Objects in Setter and Getter Methods 427
Exercises 429
19 Archiving 431
Archiving with XML Property Lists 431
Archiving with NSKeyedArchlver 434
Writing Encoding and Decoding Methods 435
Using NSData to Create Custom Archives 442
Using the Archiver to Copy Objects 446
Exercises 447
Contents
III: Cocoa, Cocoa Touch, and the iOS SDK
20 Introduction to Cocoa and Cocoa Touch 449
Framework Layers 449
Cocoa Touch 450
21 Writing iOS Applications 453
The iOS SDK 453
Your First iPhone Application 453
Creating a New iPhone Application Project 456
Entering Your Code 460
Designing the Interface 462
An iPhone Fraction Calculator 469
Starting the New Fraction_Calculator Project 471
Defining the View Controller 471
The Fraction Class 477
A Calculator Class That Deals with Fractions 480
Designing the User Interface 482
Summary 482
Exercises 484
Appendixes
A Glossary 487
B Address Book Example Source Code 495
Index 501
|
any_adam_object | 1 |
author | Kochan, Stephen G. 1955- |
author_GND | (DE-588)112553346 |
author_facet | Kochan, Stephen G. 1955- |
author_role | aut |
author_sort | Kochan, Stephen G. 1955- |
author_variant | s g k sg sgk |
building | Verbundindex |
bvnumber | BV040450561 |
classification_tum | DAT 364f |
ctrlnum | (OCoLC)815940521 (DE-599)BVBBV040450561 |
discipline | Informatik |
edition | 5. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>02184nam a2200529 c 4500</leader><controlfield tag="001">BV040450561</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20130110 </controlfield><controlfield tag="007">t|</controlfield><controlfield tag="008">121001s2013 xx a||| |||| 00||| eng d</controlfield><datafield tag="015" ind1=" " ind2=" "><subfield code="a">GBB279344</subfield><subfield code="2">dnb</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780321887283</subfield><subfield code="c">pbk</subfield><subfield code="9">978-0-321-88728-3</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">032188728X</subfield><subfield code="c">pbk</subfield><subfield code="9">0-321-88728-X</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)815940521</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV040450561</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-91G</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">DAT 364f</subfield><subfield code="2">stub</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Kochan, Stephen G.</subfield><subfield code="d">1955-</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)112553346</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Programming in Objective-C</subfield><subfield code="b">[updated for Xcode 4.5 and iOS 6]</subfield><subfield code="c">Stephen G. Kochan</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">5. ed.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Upper Saddle River, NJ [u.a.]</subfield><subfield code="b">Addison-Wesley</subfield><subfield code="c">2013</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XV, 532 S.</subfield><subfield code="b">Ill.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">Developer's library</subfield></datafield><datafield tag="500" ind1=" " ind2=" "><subfield code="a">Previous ed.: 2012. - Includes index</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Objective-C (Computer program language)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Object-oriented programming (Computer science)</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Programmiersprache</subfield><subfield code="0">(DE-588)4047409-4</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">C</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4113195-2</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Objective-C</subfield><subfield code="0">(DE-588)4335874-3</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Objektorientierung</subfield><subfield code="0">(DE-588)4346172-4</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Objektorientierte Programmierung</subfield><subfield code="0">(DE-588)4233947-9</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Objective-C</subfield><subfield code="0">(DE-588)4335874-3</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="689" ind1="1" ind2="0"><subfield code="a">Objektorientierte Programmierung</subfield><subfield code="0">(DE-588)4233947-9</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2="1"><subfield code="a">C</subfield><subfield code="g">Programmiersprache</subfield><subfield code="0">(DE-588)4113195-2</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="689" ind1="2" ind2="0"><subfield code="a">Programmiersprache</subfield><subfield code="0">(DE-588)4047409-4</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="2" ind2="1"><subfield code="a">Objektorientierung</subfield><subfield code="0">(DE-588)4346172-4</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="2" ind2=" "><subfield code="8">1\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">HBZ Datenaustausch</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=025298227&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield><datafield tag="943" ind1="1" ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-025298227</subfield></datafield></record></collection> |
id | DE-604.BV040450561 |
illustrated | Illustrated |
indexdate | 2024-12-20T16:15:17Z |
institution | BVB |
isbn | 9780321887283 032188728X |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-025298227 |
oclc_num | 815940521 |
open_access_boolean | |
owner | DE-91G DE-BY-TUM |
owner_facet | DE-91G DE-BY-TUM |
physical | XV, 532 S. Ill. |
publishDate | 2013 |
publishDateSearch | 2013 |
publishDateSort | 2013 |
publisher | Addison-Wesley |
record_format | marc |
series2 | Developer's library |
spellingShingle | Kochan, Stephen G. 1955- Programming in Objective-C [updated for Xcode 4.5 and iOS 6] Objective-C (Computer program language) Object-oriented programming (Computer science) Programmiersprache (DE-588)4047409-4 gnd C Programmiersprache (DE-588)4113195-2 gnd Objective-C (DE-588)4335874-3 gnd Objektorientierung (DE-588)4346172-4 gnd Objektorientierte Programmierung (DE-588)4233947-9 gnd |
subject_GND | (DE-588)4047409-4 (DE-588)4113195-2 (DE-588)4335874-3 (DE-588)4346172-4 (DE-588)4233947-9 |
title | Programming in Objective-C [updated for Xcode 4.5 and iOS 6] |
title_auth | Programming in Objective-C [updated for Xcode 4.5 and iOS 6] |
title_exact_search | Programming in Objective-C [updated for Xcode 4.5 and iOS 6] |
title_full | Programming in Objective-C [updated for Xcode 4.5 and iOS 6] Stephen G. Kochan |
title_fullStr | Programming in Objective-C [updated for Xcode 4.5 and iOS 6] Stephen G. Kochan |
title_full_unstemmed | Programming in Objective-C [updated for Xcode 4.5 and iOS 6] Stephen G. Kochan |
title_short | Programming in Objective-C |
title_sort | programming in objective c updated for xcode 4 5 and ios 6 |
title_sub | [updated for Xcode 4.5 and iOS 6] |
topic | Objective-C (Computer program language) Object-oriented programming (Computer science) Programmiersprache (DE-588)4047409-4 gnd C Programmiersprache (DE-588)4113195-2 gnd Objective-C (DE-588)4335874-3 gnd Objektorientierung (DE-588)4346172-4 gnd Objektorientierte Programmierung (DE-588)4233947-9 gnd |
topic_facet | Objective-C (Computer program language) Object-oriented programming (Computer science) Programmiersprache C Programmiersprache Objective-C Objektorientierung Objektorientierte Programmierung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=025298227&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT kochanstepheng programminginobjectivecupdatedforxcode45andios6 |
Inhaltsverzeichnis
Paper/Kapitel scannen lassen
Paper/Kapitel scannen lassen
Teilbibliothek Mathematik & Informatik
Signatur: |
0102 DAT 364f 2011 A 5190(5)
Lageplan |
---|---|
Exemplar 1 | Ausleihbar Am Standort |