Cocoa programming for Mac OS X:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Upper Saddle River, NJ ; Munich [u.a.]
Addison-Wesley
2008
|
Ausgabe: | 3. ed., 3. print. |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XIX, 433 S. Ill., graph. Darst. |
ISBN: | 9780321503619 0321503619 |
Internformat
MARC
LEADER | 00000nam a2200000zc 4500 | ||
---|---|---|---|
001 | BV035247305 | ||
003 | DE-604 | ||
005 | 20240605 | ||
007 | t | ||
008 | 090114s2008 xxuad|| |||| 00||| eng d | ||
020 | |a 9780321503619 |c pbk. : alk. paper |9 978-0-321-50361-9 | ||
020 | |a 0321503619 |9 0-321-50361-9 | ||
035 | |a (OCoLC)212022093 | ||
035 | |a (DE-599)BVBBV035247305 | ||
040 | |a DE-604 |b ger |e aacr | ||
041 | 0 | |a eng | |
044 | |a xxu |c US | ||
049 | |a DE-M347 |a DE-634 | ||
050 | 0 | |a QA76.76.O63 | |
082 | 0 | |a 005.265 |2 22 | |
082 | 0 | |a 005.26/8 | |
084 | |a ST 232 |0 (DE-625)143619: |2 rvk | ||
084 | |a ST 250 |0 (DE-625)143626: |2 rvk | ||
084 | |a ST 261 |0 (DE-625)143633: |2 rvk | ||
100 | 1 | |a Hillegass, Aaron |d 1969- |e Verfasser |0 (DE-588)135633664 |4 aut | |
245 | 1 | 0 | |a Cocoa programming for Mac OS X |c Aaron Hillegass |
250 | |a 3. ed., 3. print. | ||
264 | 1 | |a Upper Saddle River, NJ ; Munich [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 | ||
630 | 0 | 4 | |a Mac OS |
650 | 4 | |a Cocoa (Application development environment) | |
650 | 4 | |a Operating systems (Computers) | |
650 | 4 | |a Macintosh (Computer) |x Programming | |
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=017053008&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
Datensatz im Suchindex
_version_ | 1805075908646666240 |
---|---|
adam_text |
Contents
Preface .xvü
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
VII
viii Contents
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 LotteiyEntry 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
Contents ix
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.Ill
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
Contents
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 Menu Item. .186
Contents xi
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 Notification 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
xii Contents
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
^.::::::::::::::::;:;;;;;;;;;;;;:;:;::265
Create a New Project with a Custom View .266
Lay Out the Interface.266
Contents xüi
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 aMethod toNSString.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
xiv Contents
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. 345
Lay Out the Interface .347
Write Code . 349
Challenge: Add a WebView. . 353
Contents xv
Chapter 29 View Swapping.355
Design.356
Get Started.356
Create ManagingViewController 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
EdittheModel .365
Create Custom NSManagedObject Classes.366
Employee.367
Department .368
Lay Out the Interface.369
DepartmentView.nib .369
EmployeeView.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 NSOpenGLVlew.397
xvi Contents
Writing the Application .398
Lay Out the Interface.399
Write Code.402
Chapter 34 NSTask.405
Multithreading versus Multiprocessing .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 1969- |
author_GND | (DE-588)135633664 |
author_facet | Hillegass, Aaron 1969- |
author_role | aut |
author_sort | Hillegass, Aaron 1969- |
author_variant | a h ah |
building | Verbundindex |
bvnumber | BV035247305 |
callnumber-first | Q - Science |
callnumber-label | QA76 |
callnumber-raw | QA76.76.O63 |
callnumber-search | QA76.76.O63 |
callnumber-sort | QA 276.76 O63 |
callnumber-subject | QA - Mathematics |
classification_rvk | ST 232 ST 250 ST 261 |
ctrlnum | (OCoLC)212022093 (DE-599)BVBBV035247305 |
dewey-full | 005.265 005.26/8 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 005 - Computer programming, programs, data, security |
dewey-raw | 005.265 005.26/8 |
dewey-search | 005.265 005.26/8 |
dewey-sort | 15.265 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | 3. ed., 3. print. |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>00000nam a2200000zc 4500</leader><controlfield tag="001">BV035247305</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20240605</controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">090114s2008 xxuad|| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780321503619</subfield><subfield code="c">pbk. : alk. paper</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)212022093</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV035247305</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">aacr</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="044" ind1=" " ind2=" "><subfield code="a">xxu</subfield><subfield code="c">US</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-M347</subfield><subfield code="a">DE-634</subfield></datafield><datafield tag="050" ind1=" " ind2="0"><subfield code="a">QA76.76.O63</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.265</subfield><subfield code="2">22</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">005.26/8</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 232</subfield><subfield code="0">(DE-625)143619:</subfield><subfield code="2">rvk</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="084" ind1=" " ind2=" "><subfield code="a">ST 261</subfield><subfield code="0">(DE-625)143633:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Hillegass, Aaron</subfield><subfield code="d">1969-</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)135633664</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., 3. print.</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Upper Saddle River, NJ ; Munich [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="630" ind1="0" ind2="4"><subfield code="a">Mac OS</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Cocoa (Application development environment)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Operating systems (Computers)</subfield></datafield><datafield tag="650" ind1=" " ind2="4"><subfield code="a">Macintosh (Computer)</subfield><subfield code="x">Programming</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=017053008&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield></record></collection> |
id | DE-604.BV035247305 |
illustrated | Illustrated |
indexdate | 2024-07-20T05:48:53Z |
institution | BVB |
isbn | 9780321503619 0321503619 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-017053008 |
oclc_num | 212022093 |
open_access_boolean | |
owner | DE-M347 DE-634 |
owner_facet | DE-M347 DE-634 |
physical | XIX, 433 S. Ill., graph. Darst. |
publishDate | 2008 |
publishDateSearch | 2008 |
publishDateSort | 2008 |
publisher | Addison-Wesley |
record_format | marc |
spelling | Hillegass, Aaron 1969- Verfasser (DE-588)135633664 aut Cocoa programming for Mac OS X Aaron Hillegass 3. ed., 3. print. Upper Saddle River, NJ ; Munich [u.a.] Addison-Wesley 2008 XIX, 433 S. Ill., graph. Darst. txt rdacontent n rdamedia nc rdacarrier Mac OS Cocoa (Application development environment) Operating systems (Computers) Macintosh (Computer) Programming 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=017053008&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis |
spellingShingle | Hillegass, Aaron 1969- Cocoa programming for Mac OS X Mac OS Cocoa (Application development environment) Operating systems (Computers) Macintosh (Computer) Programming 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 | Mac OS Cocoa (Application development environment) Operating systems (Computers) Macintosh (Computer) Programming Cocoa Programm (DE-588)4646235-1 gnd |
topic_facet | Mac OS Cocoa (Application development environment) Operating systems (Computers) Macintosh (Computer) Programming Cocoa Programm |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=017053008&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT hillegassaaron cocoaprogrammingformacosx |