Cocoa programming for Mac OS X:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | Undetermined |
Veröffentlicht: |
Upper Saddle River, NJ [u.a.]
Addison Wesley
2008
|
Ausgabe: | 3. ed. |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XIX, 433 S. Ill., graph. Darst. |
ISBN: | 9780321503619 0321503619 |
Internformat
MARC
LEADER | 00000nam a2200000zc 4500 | ||
---|---|---|---|
001 | BV023647077 | ||
003 | DE-604 | ||
005 | 20081201000000.0 | ||
007 | t | ||
008 | 081118s2008 ad|| |||| 00||| und d | ||
020 | |a 9780321503619 |9 978-0-321-50361-9 | ||
020 | |a 0321503619 |9 0-321-50361-9 | ||
035 | |a (OCoLC)873600372 | ||
035 | |a (DE-599)BVBBV023647077 | ||
040 | |a DE-604 |b ger | ||
041 | |a und | ||
049 | |a DE-523 | ||
082 | 0 | |a 005.268 | |
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
100 | 1 | |a Hillegass, Aaron |e Verfasser |4 aut | |
245 | 1 | 0 | |a Cocoa programming for Mac OS X |c Aaron Hillegass |
250 | |a 3. ed. | ||
264 | 1 | |a Upper Saddle River, NJ [u.a.] |b Addison Wesley |c 2008 | |
300 | |a XIX, 433 S. |b Ill., graph. Darst. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
650 | 0 | 7 | |a Cocoa |g Programm |0 (DE-588)4646235-1 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Cocoa |g Programm |0 (DE-588)4646235-1 |D s |
689 | 0 | |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=017243423&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-017243423 |
Datensatz im Suchindex
_version_ | 1804138756238737408 |
---|---|
adam_text | Preface xvii
Acknowledgments xix
Chapter 1 Cocoa: What Is It? 1
A Little History 1
Tools 3
Language 4
Objects, Classes, Methods, and Messages 4
Frameworks 6
How to Read This Book 6
Typographical Conventions 7
Common Mistakes 7
How to Learn 8
Chapter 2 Let s Get Started 9
In Xcode 9
Create a New Project 10
The main Function 12
In Interface Builder 13
The Library Window 14
The Blank Window 14
Lay Out the Interface 15
The Doc Window 17
Create a Class 17
Create an Instance 19
Make Connections 20
Back in Xcode 23
Types and Constants in Objective-C 23
Look at the Header File 24
Edit the Implementation File 25
Build and Run 27
awakeFromNib 28
Documentation 29
What Have You Done? 30
Chapter 3 Objective-C 33
Creating and Using Instances 33
Using Existing Classes 35
Sending Messages to nil 40
NSObject, NSArray, NSMutableArray, and NSString 41
Inherits from versus Uses or Knows About 45
Creating Your Own Classes 46
Creating the LotteryEntry Class 46
Changing lottery.m 49
Implementing a description Method 50
Writing Initializers 55
Initializers with Arguments 56
The Debugger 58
For the More Curious: How Does Messaging Work? 62
Challenge 63
Chapter 4 Memory Management 65
Turning the Garbage Collector On and Off 66
Living with the Garbage Collector 68
Living with Retain Counts 68
Implementing dealloc 71
Creating Autoreleased Objects 72
Accessor Methods 74
What Have You Done? 77
Chapter 5 Target/Action 79
Some Commonly Used Subclasses of NSControl 81
NSButton 81
NSSlider 82
NSTextField 83
Start the SpeakLine Example 85
Lay Out the Nib File 86
Making Connections in Interface Builder 87
NSWindow s initialFirstResponder Outlet 88
Implementing the AppController Class 88
For the More Curious: Setting the Target Programmatically 90
Challenge 90
Debugging Hints 92
Chapter 6 Helper Objects 95
Delegates 96
The NSTableView and Its dataSource 99
Lay Out the User Interface 102
Make Connections 103
Edit AppController.m 105
Common Errors in Implementing a Delegate 107
Object Delegates 107
For the More Curious: How Delegates Work 108
Challenge: Make a Delegate 109
Challenge: Make a Data Source 110
Chapter 7 Key-Value Coding; Key-Value Observing 111
Key-Value Coding 111
Bindings 113
Key-Value Observing 115
Making Keys Observable 116
Properties and Their Attributes 118
@property and @synthesize 118
Attributes of a Property 119
For the More Curious: Key Paths 120
For the More Curious: Key-Value Observing 121
Chapter 8 NSArrayController 123
Starting the RaiseMan Application 124
In Xcode 125
In Interface Builder 128
Key-Value Coding and nil 132
Add Sorting 133
For the More Curious: Sorting without NSArrayController 134
Challenge 1 135
Challenge 2 135
Chapter 9 NSUndoManager 139
NSInvocation 139
How the NSUndoManager Works 140
Adding Undo to RaiseMan 142
Key-Value Observing 145
Undo for Edits 146
Begin Editing on Insert 149
For the More Curious: Windows and the Undo Manager 151
Chapter 10 Archiving 153
NSCoder and NSCoding 154
Encoding 154
Decoding 156
The Document Architecture 157
Info.plist and NSDocumentController 157
NSDocument 158
NSWindowController 161
Saving and NSKeyedArchiver 161
Loading and NSKeyedUnarchiver 162
Setting the Extension and Icon for the File Type 163
For the More Curious: Preventing Infinite Loops 166
For the More Curious: Creating a Protocol 167
For the More Curious: Document-Based Applications without Undo ... 167
Universal Type Identifiers 168
Chapter 11 Basic Core Data 171
NSManagedObjectModel 171
Interface 173
Create and Configure Views 175
Connections and Bindings 177
How Core Data Works 180
Chapter 12 Nib Files and NSWindowController 183
NSPanel 183
Adding a Panel to the Application 184
Setting Up the Menü Item 186
AppController.m 187
Preferences.nib 188
PreferenceController.m 192
For the More Curious: NSBundle 194
Challenge 195
Chapter 13 User Defaults 197
NSDictionary and NSMutableDictionary 198
NSDictionary 198
NSMutableDictionary 199
NSUserDefaults 200
Precedence of Different Types of Defaults 201
Setting the Identifier for the Application 202
Creating Keys for the Names of the Defaults 202
Registering Defaults 203
Letting the User Edit the Defaults 203
Using the Defaults 205
Suppressing the Creation of Untitled Documents 205
Setting the Background Color on the Table View 206
For the More Curious: NSUserDefaultsController 207
For the More Curious: Reading and Writing Defaults from the
Command Line 207
Challenge 208
Chapter 14 Using Notifications 209
What Notifications Are 209
What Notifications Are Not 210
NSNotification and NSNotificationCenter 210
Posting a Notification 212
Registering as an Observer 213
Handling the Notifikation When It Arrives 214
The userlnfo Dictionary 214
For the More Curious: Delegates and Notifications 215
Challenge 216
Chapter 15 Using Alert Panels 217
Make the User Confirm the Deletion 218
Challenge 221
Chapter 16 Localization 223
Localizing a Nib File 224
String Tables 226
Creating String Tables 227
Using the String Table 229
For the More Curious: ibtool 230
For the More Curious: Explicit Ordering of Tokens in Format Strings ... 231
Chapter 17 Custom Views 233
The View Hierarchy 233
Getting a View to Draw Itself 235
Create an Instance of a View Subclass 236
Size Inspector 237
drawRect: 238
Drawing with NSBezierPath 240
NSScrollView 242
Creating Views Programmatically 245
For the More Curious: Cells 245
For the More Curious: isFlipped 247
Challenge 248
Chapter 18 Images and Mouse Events 249
NSResponder 249
NSEvent 249
Getting Mouse Events 251
Using NSOpenPanel 251
Change the Nib File 252
Edit the Code 255
Composite an Image onto Your View 256
The View s Coordinate System 258
Autoscrolling 261
For the More Curious: NSImage 261
Challenge 262
Chapter 19 Keyboard Events 263
NSResponder 265
NSEvent 265
Create a New Project with a Custom View 266
Lay Out the Interface 266
Make Connections 267
Write the Code 270
For the More Curious: Rollovers 274
The Fuzzy Blue Box 275
Chapter 20 Drawing Text with Attributes 277
NSFont 277
NSAttributedString 278
Drawing Strings and Attributed Strings 280
Making Letters Appear 281
Getting Your View to Generate PDF Data 283
For the More Curious: NSFontManager 286
Challenge 1 286
Challenge 2 286
Chapter 21 Pasteboards and Nil-Targeted Actions 287
NSPasteboard 288
Add Cut, Copy, and Paste to BigLetterView 289
Nil-Targeted Actions 290
How the Responder Chain Is Searched 291
Looking at the Nib File 292
For the More Curious: Which Object Sends the Action Message? .... 293
For the More Curious: Lazy Copying 293
Challenge 1 294
Challenge 2 294
Chapter 22 Categories 295
Add a Method to NSString 295
For the More Curious: Declaring Private Methods 297
For the More Curious: Declaring Informal Protocols 297
Chapter 23 Drag-and-Drop 299
Make BigLetterView a Drag Source 300
Make BigLetterView a Drag Destination 303
registerForDraggedTypes 304
Add Highlighting 304
Implement the Dragging-Destination Methods 305
Test 306
For the More Curious: Operation Mask 307
Chapter 24 NSTimer 309
Lay Out the Interface 311
Make Connections 312
Adding Code to AppController 314
For the More Curious: NSRunLoop 316
Challenge 316
Chapter 25 Sheets 317
Adding a Sheet 318
Add Outlets and Actions 319
Lay Out the Interface 319
Add Code 323
For the More Curious: contextlnfo 324
For the More Curious: Modal Windows 325
Chapter 26 Creating NSFormatters 327
A Basic Formatter 328
Create ColorFormatter.h 329
Edit the Nib File 329
NSColorList 331
Search Strings for Substrings 332
Implement the Basic Formatter Methods 332
The delegate of the NSControl 334
Checking Partial Strings 335
Formatters That Return Attributed Strings 337
Chapter 27 Printing 339
Dealing with Pagination 339
For the More Curious: Am I Drawing to the Screen? 344
Challenge 344
Chapter 28 Web Service 345
AmaZone 346
Lay Out the Interface 347
Write Code 349
Challenge: Add a WebView 353
Chapter 29 View Swapping 355
Design 356
Get Started 356
CreateManagingViewController Class 357
Create ViewControllers and Their NIB files 358
Add View Swapping to MyDocument 360
Resizing the Window 362
Chapter 30 Core Data Relationships 365
Edit the Model 365
Create Custom NSManagedObject Classes 366
Employee 367
Department 368
Lay Out the Interface 369
DepartmentView.nib 369
Employee View.nib 371
Events and nextResponder 372
Chapter 31 Garbage Collection 375
Non-object Data Types 376
C Primitive 376
Core Foundation 377
Polynomials Example 377
Instruments 383
For the More Curious: Weak References 385
Challenge: Do Bad Things 385
Chapter 32 Core Animation 387
Creating CALayer 388
Using CALayer and CAAnimation 390
Removing Polynomials 392
Moving Many Layers Simultaneously 393
Resizing and Redrawing the Layers 393
CALayer 394
Chapter 33 A Simple Cocoa/OpenGL Application 397
Using NSOpenGLView 397
Writing the Application 398
Lay Out the Interface 399
Write Code 402
Chapter 34 NSTask 405
Multithreading versus Multdprocessing 405
ZIPspector 406
Asynchronous Reads 410
iPing 411
Challenge: .tar and .tgz files 415
Chapter 35 The End 417
Challenge 418
Index 419
|
any_adam_object | 1 |
author | Hillegass, Aaron |
author_facet | Hillegass, Aaron |
author_role | aut |
author_sort | Hillegass, Aaron |
author_variant | a h ah |
building | Verbundindex |
bvnumber | BV023647077 |
classification_rvk | ST 250 |
ctrlnum | (OCoLC)873600372 (DE-599)BVBBV023647077 |
dewey-full | 005.268 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.268 |
dewey-search | 005.268 |
dewey-sort | 15.268 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | 3. ed. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01253nam a2200349zc 4500</leader><controlfield tag="001">BV023647077</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20081201000000.0</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">081118s2008 ad|| |||| 00||| und d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780321503619</subfield><subfield code="9">978-0-321-50361-9</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">0321503619</subfield><subfield code="9">0-321-50361-9</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)873600372</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV023647077</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield></datafield><datafield tag="041" ind1=" " ind2=" "><subfield code="a">und</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-523</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.268</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 250</subfield><subfield code="0">(DE-625)143626:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Hillegass, Aaron</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Cocoa programming for Mac OS X</subfield><subfield code="c">Aaron Hillegass</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">3. 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">2008</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XIX, 433 S.</subfield><subfield code="b">Ill., graph. Darst.</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="650" ind1="0" ind2="7"><subfield code="a">Cocoa</subfield><subfield code="g">Programm</subfield><subfield code="0">(DE-588)4646235-1</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Cocoa</subfield><subfield code="g">Programm</subfield><subfield code="0">(DE-588)4646235-1</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><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=017243423&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-017243423</subfield></datafield></record></collection> |
id | DE-604.BV023647077 |
illustrated | Illustrated |
indexdate | 2024-07-09T21:33:15Z |
institution | BVB |
isbn | 9780321503619 0321503619 |
language | Undetermined |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-017243423 |
oclc_num | 873600372 |
open_access_boolean | |
owner | DE-523 |
owner_facet | DE-523 |
physical | XIX, 433 S. Ill., graph. Darst. |
publishDate | 2008 |
publishDateSearch | 2008 |
publishDateSort | 2008 |
publisher | Addison Wesley |
record_format | marc |
spelling | Hillegass, Aaron Verfasser aut Cocoa programming for Mac OS X Aaron Hillegass 3. ed. Upper Saddle River, NJ [u.a.] Addison Wesley 2008 XIX, 433 S. Ill., graph. Darst. txt rdacontent n rdamedia nc rdacarrier Cocoa Programm (DE-588)4646235-1 gnd rswk-swf Cocoa Programm (DE-588)4646235-1 s DE-604 HBZ Datenaustausch application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017243423&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Hillegass, Aaron Cocoa programming for Mac OS X Cocoa Programm (DE-588)4646235-1 gnd |
subject_GND | (DE-588)4646235-1 |
title | Cocoa programming for Mac OS X |
title_auth | Cocoa programming for Mac OS X |
title_exact_search | Cocoa programming for Mac OS X |
title_full | Cocoa programming for Mac OS X Aaron Hillegass |
title_fullStr | Cocoa programming for Mac OS X Aaron Hillegass |
title_full_unstemmed | Cocoa programming for Mac OS X Aaron Hillegass |
title_short | Cocoa programming for Mac OS X |
title_sort | cocoa programming for mac os x |
topic | Cocoa Programm (DE-588)4646235-1 gnd |
topic_facet | Cocoa Programm |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017243423&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT hillegassaaron cocoaprogrammingformacosx |