Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764...

21

Transcript of Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764...

Page 1: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,
Page 2: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

Symbole__block siehe Block

__block__DATE__ 732__FILE__ 732__LINE__ 732__NSGlobalBlock__ siehe Block

__NSGlobalBlock____NSMallocBlock__ siehe Block

__NSMallocBlock____NSStackBlock__ siehe Block

__NSStackBlock____STDC__ 732__TIME__ 732__weak 300_Bool 29, 463_cmd 80.c-Datei 719.h-Datei 726.m-Datei 28.o-Datei 720@ 319, 346@avg 503@catch 150@dynamic 107@encode 462@finally 150@implementation siehe Klassenimplemen-

tierung@interface siehe Klasseninterface@max 503@min 503@optional 137@private 55@property 106

Attribute 109@protected 55@protocol 453

als externe Referenz 133zur Definition von Protokollen 124

@protocol() 134@public 55@required 137@selector 454@selector siehe Selektor@synchronized 590@synthesize 108@throw 146, 155@try 150#define 722#elif 730#else 729#endif 729#if 730#ifdef 729#import 28, 51#include 725#undef 725

Numerisch1:1-Beziehung 4971:m-Beziehung 497

Implementierung 505

Aa.out 702, 719abbreviationDictionary 337Abhängigkeiten

zyklische 258Abhängigkeitsgraph 231, 238, 291acceptConnectionInBackgroundAndNotify

442accessInstanceVariablesDirectly 498Accessor Method siehe ZugriffsmethodeaddDependency: 570addExecutionBlock: 573addObject: 361

bei NSCountedSet 387bei NSMutableSet 381

addObserver:forKeyPath:options:context: 518

757© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 3: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

758

addObserver:selector:name:object: 533addObserver:toObjectsAtIndexes:forKeyPa-

th:options:context: 519addOperation: 564addOperationWithBlock: 573addPort:forMode: 617addTimeInterval: 331addTimer:forMode: 603, 607Adresse

virtuelle 225alertWithError 353allBundles 645allFrameworks 645allObjects

bei NSSet 379alloc 67, 231, 239, 266allocWithZone: 232, 266, 293Allokation 66, 71Anonyme Pointer 749Anonymes Objekt 126Anweisung 732

Bedingte 733Blöcke 732break- 738continue- 738for-Schleife 736goto- 739if- 733return- 703, 738Schleifen 736Sprung- 738switch- 734while-Schleife 736

anyObjectbei NSSet 379

appendBytes:length: 312appendData: 312appendFormat: 328appendString: 328AppKit siehe Application KitApple Developer Program 217Application Kit 191, 195Application Services 190applicationDidFinishLaunchingWithOp-

tions 210applicationWillTerminate 210ARC Siehe Reference CountingArchiv 314archiveRootObject:toFile 314Arithmetischer Operator 740

Array 750Durchlaufen mittels Blöcken 401Filtern 373Filtern mit Blöcken 376Gleichheit zweier Objekte 358sortieren 366unveränderlich siehe NSArrayveränderlich siehe NSMutableArray

array 356Array-Literal 357arrayWithArray: 365arrayWithCapacity: 360arrayWithContentsOfFile: 439arrayWithContentsOfURL: 439arrayWithObject: 356arrayWithObjects: 356assign 112, 258Atomare Operation 585atomic 111, 257Attribut

bei Key-Value Coding 497attribute siehe AttributAufzählung siehe EnumerationAusdruck 739Ausnahme 143, 145

auslösen 145fangen 149

Ausnahmebehandlung 143, 349@catch 150@finally 150@throw 146, 155@try 150Auslösen von Ausnahmen 145Ausnahme 143, 145Fangen von Ausnahmen 149

autorelease 243, 247, 268, 293Autorelease Pool 247, 268autoupdatingCurrentCalendar 333

BBarriere 294Basisdatentyp 705Bedingte Anweisung 733Bedingte Übersetzung 729Bedingter Ausdruck 740Benachrichtigung 529Benutzerdefinierte Quelle 629Beobachter 517Besitz 238, 245Binnengroßschreibung 44

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 4: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

Bit-Manipulationen 741Block 159, 732

__block 164, 181__NSGlobalBlock__ 173__NSMallocBlock__ 173, 179__NSStackBlock__ 173ausführen 160Block_byref 181BLOCK_HAS_COPY_DISPOSE 174,

178BLOCK_HAS_CTOR 174BLOCK_HAS_DESCRIPTOR 174BLOCK_IS_GC 174BLOCK_IS_GLOBAL 174Block_layout 173BLOCK_NEEDS_FREE 174, 180BLOCK_REFCOUNT_MASK 174Erzeugung 159freigeben 167, 171, 178, 180Heap 166interne Darstellung 173Kopieren 178kopieren 166, 171, 179Laufzeitstack 165, 166lokale Variablen 161, 163, 176NSBlock 171Objekt 170Typ 159

Block_copy siehe Blockkopieren

Block_release siehe Blockfreigeben

Blockkommentar 705BOOL 29, 463bool 29, 463Boolesche Werte

_Bool 463BOOL 463bool 463

boolesche Werte 29_Bool 29BOOL 29bool 29false 30NO 29true 30YES 29

Boxing 320, 347break-Anweisung 735, 738builtInPluginsPath 644

Bundle 635als PlugIn 647Anatomie 636Applikationsbundle 635Erstellen 643Zugriff auf enthaltene Ressourcen 645Zugriff durch Objective-C 643zum Speichern von Daten 646

bundleForClass: 638, 649bundleWithIdentifier: 645bundleWithPath: 644bytes 310

CCamel Case 44canBeConvertedToEncoding: 321cancel 581cancelAllOperations 567cancelPreviousPerformRequestsWithTarget:

615cancelPreviousPerformRequestsWithTar-

get:selector:object: 615case 735caseInsensitiveCompare: 367Category siehe KategorieCFArrayRef 360CFBundleDocumentTypes 646CFBundleIdentifier 645CFBundleTypeExtensions 646CFReadStreamRef 434CFRunLoopAddSource 631CFRunLoopGetCurrent 602CFRunLoopRef 602CFRunLoopRemoveSource 631CFRunLoopRun 605CFRunLoopRunInMode 597CFRunLoopSourceContext 630CFRunLoopSourceCreate 630CFRunLoopSourceInvalidate 631CFRunLoopSourceSignal 631CFRunLoopStop 604, 610CFRunLoopTimerRef 607CFRunLoopWakeUp 631CFSocketGetNative 446CFSocketPortRef 627CFStreamRef 434CFWriteStreamRef 434CGFloat 307char 706characterAtIndex: 318

759© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 5: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

760

class 450class_addIvar 469class_addMethod 469, 472class_addProtocol 469class_conformsToProtocol 457class_copyIvarList 466class_copyMethodList 460class_copyPropertyList 457, 465class_getInstanceMethod 458class_getInstanceVariable 466class_getMethodImplementation 459, 470class_getName 455class_getProperty 464class_getSuperclass 456class_replaceMethod 469class_respondsToSelector 458className 451classNamed 649close 298

bei NSStream 422Cocoa 190

Application Kit 191, 195CoreData 192Foundation Framework 191, 192

Cocoa Application 201Cocoa Touch 206

UIKit 207Cocoa-Framework 51collectIfNeeded 292Collection 355Collection-API 355Collections

durchlaufen 398objectEnumerator 398

Command Line Tool 198compare: 326

bei NSDate 332bei NSNumber 347

compare:options: 325compare:options:range: 325components:fromDate: 333components:fromDate:toDate:options: 334ConcreteObserver 517Condition 595condition 594conformsToProtocol 453conformsToProtocol: 135containsObject:

bei NSArray 359bei NSSet 379

contentsEqualAtPath:andPath: 420continue-Anweisung 738Controller 196Convenience-Konstruktor 68, 71, 242copy 112, 239, 258copyItemAtPath:toPath:error: 414copyPath:toPath:handler: 419copyWithZone: 234Core Services 190CoreData 192count 357

bei NSDictionary 391bei NSSet 379

countByEnumeratingWithState:ob-jects:count: 487

Counted Set 387countForObject: 387countOf: 506createDirectoryAtPath:withIntermediateDi-

rectories:attributes:error: 418createFileAtPath:contents:attributes: 417cStringUsingEncoding: 321currentCalendar 333currentRunLoop 602

DDarwin 190dataUsingEncoding: 321dataUsingEncoding:allowLossyConversion:

321dataWithBytes:length: 308dataWithBytesNoCopy:length: 309dataWithBytesNoCopy:length:freeWhenDo-

ne: 309dataWithCapacity 311dataWithContentsOfFile: 438dataWithContentsOfFile:options:error: 438dataWithContentsOfURL: 439dataWithContentsOfURL:options:error: 439dataWithLength: 311date 331dateByAddingComponents:toDate:options:

335dateFromComponents: 334dateFromString: 341Dateisystem

Domänen 413Erstellen von Einträgen 417Kopieren 414Löschen von Einträgen 416

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 6: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

Operationen 413Verschieben von Dateien 415

Datentyp 705, 746dateWithTimeIntervalSince1970: 331dateWithTimeIntervalSinceNow: 331dateWithTimeIntervalSinceReferenceDate:

331Deadlock 593dealloc 236, 255, 267Deep Copy 235default 735defaultCenter 531

bei NSDistributedNotificationCenter 535defaultManager 414defaultQueue

bei NSNotificationQueue 537Delegate siehe DelegationsobjektDelegation 541

als Datenquelle 544Delegationsobjekt 541zur Auslagerung von Funktionalität 542

Delegationsobjekt 541deleteCharactersInRange: 329dependencies 570dequeueReusableCellWithIdentifier: 215Dereferenzierung 748Design Pattern 481

Delegation 541Observer 516schnelle Iteration 482

detachNewThreadSelector:toTarget:withOb-ject: 573, 576

Dictionary 388Filtern mittels Blöcken 396sortieren 395unveränderlich siehe NSDictionaryveränderlich siehe NSMutableDictio-

naryDictionarys

Durchlaufen mittels Blöcken 403dictionaryWithContentsOfFile: 439dictionaryWithContentsOfURL: 439dictionaryWithObject:forKey: 390dictionaryWithObjects:forKeys: 390dictionaryWithObjectsAndKeys: 390dictionaryWithValuesForKeys: 504didChangeValueForKey: 521disableCollectorForPointer 292distantFuture 332distantPast 332

Document Packages siehe Dokumenten-bundle

Dokumentenbundle 646double 708Dynamic Binding 43, 82Dynamic Typing 38, 80

EearlierDate: 332Eigenschaft

bei Key-Value Coding 497else 733encodeInt:forKey: 316encodeWithCoder: 315enqueueNotification:postingStyle: 538enqueueNotification:postingStyle:coalesce-

Mask:forModes: 538Entwurfsmuster siehe Design PatternenumerateObjectsUsingBlock: 401, 403enumerateObjectsWithOptions:usingBlock:

402Enumeration 398enumeratorAtPath: 420EOF 144errno 144errorWithDomain:code:userInfo: 350Exception Handling siehe Ausnahmebe-

handlungException siehe AusnahmeexceptionWithName:reason:userInfo: 349executionBlocks 573Exponent 709Extension 99extern 727

FFactory-Methode 548false 30fast iteration siehe Schnelle Iterationfclose 143Fehler siehe NSErrorFehlercode 350Fehlerdomäne 350

Namenskonvention 351fgetc 144FILE 143fileExistsAtPath: 419fileHandleForReadingAtPath: 440fileHandleForUpdatingAtPath: 440

761© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 7: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

762

fileHandleForWritingAtPath: 440fileManager:shouldCopyItemAtPath:toPath:

415fileManager:shouldMoveItemAtPath:toPath:

416fileManager:shouldProceedAfterError: 419fileManager:shouldProceedAfterError:copy-

ingItemAtPath:toPath: 415fileManager:shouldProceedAfterError:mo-

vingItemAtPath:toPath: 416fileManager:shouldProceedAfterError:remo-

vingItemAtPath: 417fileManager:shouldRemoveItemAtPath: 417fileManager:willProcessPath: 419filteredArrayUsingPredicate: 374filterUsingPredicate: 374finalize 291, 295finishEncoding 318fireDate 612Fließkommakonstanten 709float 708float.h 709fopen 143for

schnelle Iteration 483Formales Protokoll 121Formatstring 322for-Schleife 736Forward Invocation 85

forwardInvocation 85methodSignatureForSelector 86

Forwarding siehe Forward InvocationforwardInvocation: 85Foundation Framework 191, 192free 756Freigabe 238, 255Funktion 709Funktionsaufruf 711Funktionsdeklaration 713Funktionspointer 161, 749Funktionsrumpf 710

GGanzzahlige Konstanten 707Garbage Collecting 289, 291

Abhängigkeitsgraph 291Barriere 294Generation 294Schwache Referenz 300Zombie 297

gcc siehe GNU Compiler CollectionGeneration 294genstrings 639get:range: 507getBytes: 310getBytes:length: 310getBytes:range: 310getCFRunLoop 602getCString:maxLength:encoding: 321getObjectValue:forString:range:error: 341getStreamsToHost: port:inputStream:out-

putStream: 430Getter 104, 256getter= 110getValue: 345Globale Variable 717

Gültigkeitsbereich 717Lebensdauer 717

GNU Compiler Collection 28, 702goto-Anweisung 739Gültigkeitsbereich 55, 716, 717, 719

HhandlePortMessage 618hasBytesAvailable 423hasSpaceAvailable 426Header-Datei 726Heap 226hostWithName: 430

IIBAction 204id 38if-Anweisung 733IMP 42, 81indexesOfObjectsPassingTest: 377indexOfObject: 358indexOfObject:inRange: 359indexOfObjectIdenticalTo: 358indexOfObjectIdenticalTo:inRange: 359indexOfObjectPassingTest: 377Index-Operator 751Indirektion 748Information Hiding 36

Kapselung 37Polymorphismus 37, 42

init 67, 69, 267initForReadingWithData: 318initForWritingWithMutableData: 317

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 8: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

Initialisierung 66, 71Initialisierungsmethode 67, 68initialize 71initWithArray: 365initWithBytes:length: 308initWithBytes:objCType: 343initWithCalendarIdentifier: 333initWithCapacity: 360initWithCoder: 315initWithCString: 320initWithData:encoding: 320initWithDomain:code:userInfo: 350initWithFileDescriptor:closeOnDealloc: 442initWithFormat: 322initWithFormat:locale: 323initWithInvocation: 572initWithKey:ascending: 370initWithKey:ascending:selector: 370initWithName: 336initWithPath: 644initWithSendPort:receivePort:components:

618initWithTarget:selector:object: 571, 576InputStream 421inputStreamWithFileAtPath: 423insertObject:atIndex: 361insertObject:inAtIndex: 508insertString:atIndex: 329instancesRespondToSelector 454Instanz 44Instanzenmethode siehe MethodeInstanzenvariable 37, 48, 54, 81

Gültigkeitsbereich 55Namenskonvention 55

int 706Interface Builder 201Internationalisierung 637Interner Zustand 36, 37intersectSet: 383intersectsSet: 382Introspektion 449

NSObject 450Runtime Library 455

invalidate 599, 610invocationWithMethodSignature 608invokeWithTarget 87iOS 206

Socketverbindung 445iPad 206

iPhone 206Simulator 208

iPhone-SDK 208isa 52, 56, 83, 231, 266isCancelled 566, 581isConcurrent 568isEqual:

bei NSArray 358isEqualToDate: 332isEqualToSet: 383isEqualWithData: 310isExecuting 563isFinished 563, 581isKindOfClass: 452isMemberOfClass 450isSubclassOfClass: 452isSubsetOfSet: 383isSuspended 567Iteration siehe Enumerationivar_getName 466ivar_getOffset 466ivar_getTypeEncoding 466

KKalender

NSCalendar 333Kapselung 37

primitiver Datentypen 342Zahlwerte 346

Kategorieals Extension 99Erweiterung von Klassen 91für die Klasse NSObject 96für Infomation Hiding 94Implementierung 92Namenskonvention 92

kCFAllocatorDefault 630kCFRunLoopCommonModes 604kCFRunLoopDefaultMode 603kCFRunLoopRunFinished 599kCFRunLoopRunHandledSource 599kCFRunLoopRunStopped 599kCFRunLoopRunTimedOut 599key 495keyEnumerator 400keypath 495keyPathsForValuesAffecting: 528keyPathsForValuesAffectingValueForKey:

527

763© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 9: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

764

keysOfEntriesPassingTest: 396keysSortedByValueUsingSelector: 395Key-Value Coding 495, 497

@avg 503@max 503@min 5031:1-Beziehung 497abhängige Attribute 526Attribut 497Eigenschaft 497keyPathsForValuesAffecting: 528keyPathsForValuesAffectingValueFor-

Key: 527Operationen für keypath 503Terminologie 497Validierung 512

Key-Value Observing 518addObserver:forKeyPath:options:cont-

ext: 518didChangeValueForKey: 521observeValueForKeyPath:ofObject:chan-

ge:context: 520removeObserver:forKeyPath: 519willChangeForKey: 521

Klasse 39, 44Namenskonvention 44Speicheraufbau 58

Klassenimplementierung 49Klasseninitialisierung 71Klasseninterface 47, 54, 60Klassenmethode 48, 60, 64Klassen-Objekt 44Klassenvariable 65knownTimeZoneNames 337Kommentar 704

Block- 705Zeilen- 704

Kommunikationskanal 617Kompilieren 719Konstanten

Fließkomma- 709Ganzzahlige 707Zeichen- 707Zeichenketten- 708

KVC siehe Key-Value CodingKVO siehe Key-Value Observing

LlastPathComponent 412laterDate: 332

Laufzeit-Stack 226Lebensdauer 717, 719Lebenszeit 229length 310

für NSString 318limits.h 706Linker 720Literal

Array 357NSDictionary 391String 319Zahlen 346

Literale für Zahlen 346Localizable.strings 637localizedStringForKey:value:table: 638localizedStringWithFormat: 323Lock 588, 590, 593lock 589, 594lockWithCondition: 594Logischer Operator 743Lokale Variable 714

Gültigkeitsbereich 716Lebensdauer 717

Lokalisierung 636Suchreihenfolge der Übersetzungen

642long double 708long int 706long long int 706LSTypeIsPackage 646

MMac OS X 190main 562mainBundle 638main-Funktion 28, 197, 702mainRunLoop 602mainThread 573Makrodefinition 722malloc 756Map siehe DictionaryMaster-Detail Application 208maxConcurrentOperationCount 564member:

bei NSSet 379Memory Management 228, 290

Abhängigkeitsgraph 231, 238, 291Garbage Collecting siehe Garbage Col-

lectingHeap 226

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 10: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

Laufzeit-Stack 226Lebenszeit 229Reference Counting siehe Reference

CountingSpeicherzone 232statischer Speicher 226wählen 289

Menge siehe Setmessage.h 455Metaprogrammierung 449, 468method_copyArgumentType 461method_copyReturnType 461method_getImplementation 459method_getName 458method_getNumberOfArguments 461Methode 35, 36, 37, 48, 60

Namenskonvention 60Methodenaufruf 39, 77Methodenimplementierung 49, 61, 80methodSignatureForSelector 86minusSet: 383Model 196Model-View-Controller 195

Controller 196Model 196View 196

Modularisierung 36moveItemAtPath:toPath:error: 415movePath:toPath:handler: 419msgid 618MultiTouch 207mutableArrayValueForKey: 508mutableArrayValueForKeyPath: 508mutableBytes 310MVC siehe Model-View-Controller

NNachricht 35, 37, 39Namenskonvention 44, 55, 60new 53, 68, 239nextObject 398NeXTSTEP 189nil 38, 43, 348NO 29nonatomic 111, 258nonretainedObjectValue 345Notification siehe BenachrichtigungnotificationWithName:object: 530notificationWithName:object:userInfo: 530NSAllDomainsMask 413

NSAllocateObject 266NSAnchoredSearch 326NSApplicationDirectory 413NSApplicationMain 201, 597NSArchiver 316NSArray 356

addObserver:toObjectsAtIndexes:for-KeyPath:options:context: 519

array 356arrayWithArray: 365arrayWithContentsOfFile: 439arrayWithContentsOfURL: 439arrayWithObject: 356arrayWithObjects: 356containsObject: 359count 357enumerateObjectsUsingBlock: 401filteredArrayUsingPredicate: 374indexesOfObjectsPassingTest: 377indexOfObject: 358indexOfObject:inRange: 359indexOfObjectIdenticalTo: 358indexOfObjectIdenticalTo:inRange: 359indexOfObjectPassingTest: 377initWithArray: 365isEqual: 358objectAtIndex: 357objectAtIndexedSubscript: 357reverseObjectEnumerator 399sortedArrayUsingComparator: 369sortedArrayUsingDescriptors: 372sortedArrayUsingFunction:context: 368sortedArrayUsingSelector: 366

NSAutoreleasePool 247NSBackwardSearch 326NSBlock siehe Block

NSBlockNSBlockOperation 572NSBundle 638

allBundles 645allFrameworks 645builtInPluginsPath: 644bundleForClass: 638, 649bundleWithIdentifier: 645bundleWithPath: 644classNamed: 649initWithPath: 644localizedStringForKey:value:table: 638mainBundle 638

765© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 11: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

766

pathForResource:OfType:inDirectory: 646

pathForResources:ofType: 645principalClass 647

NSCalendar 333autoupdatingCurrentCalendar 333components:fromDate: 333components:fromDate:toDate:options:

334currentCalendar 333dateByAddingComponents:toDate:op-

tions: 335dateFromComponents: 334initWithCalendarIdentifier: 333setTimeZone: 337

NSCalendarDate 336NSCalendarUnit 333NSCaseInsensitiveSearch 326NSClassFromString 452NSCocoaErrorDomain 351NSCoder 313NSCoder:encodeInt:forKey: 316NSCoding 315NSCoding:encodeWithCoder: 315NSCoding:initWithCoder: 315NSComparator 369NSComparisonResult 326NSCondition 595NSConditionLock 594NSConnectionReplyMode 604NSCopying 234NSCountedSet 387

addObject: 387countForObject: 387objectEnumerator 399removeObject: 387

NSCreateZone 232NSData 308

bytes 310dataWithBytes:length: 308dataWithBytesNoCopy:length: 309dataWithBytesNoCopy:length:free-

WhenDone: 309dataWithContentsOfFile: 438dataWithContentsOfFile:options:error:

438dataWithContentsOfURL: 439dataWithContentsOfURL:options:error:

439Erstellen mittels Kopieren 308

Erstellen ohne Kopieren 309getBytes 310getBytes:length: 310getBytes:range: 310initWithBytes:length: 308isEqualWithData: 310length 310subdataWithRange: 310writeToFile:atomically: 438writeToFile:options:error: 438

NSDate 330addTimeInterval: 331compare: 332date 331dateWithTimeIntervalSince1970: 331dateWithTimeIntervalSinceNow: 331dateWithTimeIntervalSinceReference-

Date: 331distantFuture 332distantPast 332earlierDate: 332isEqualToDate: 332laterDate: 332timeIntervalSinceReferenceDate 330

NSDateComponents 333NSDateFormatter 339

dateFromString: 341getObjectValue:forString:range:error:

341setDateFormat: 340setDateStyle: 339setTimeStyle: 339stringFromDate: 340

NSDateFormatterFullStyle 340NSDateFormatterLongStyle 340NSDateFormatterMediumStyle 340NSDateFormatterNoStyle 340NSDateFormatterShortStyle 340NSDateFormatterStyle 339NSDeallocateObject 267NSDefaultMallocZone 233NSDefaultRunLoopMode 603, 604NSDictionary 389

count 391dictionaryWithContentsOfFile: 439dictionaryWithContentsOfURL: 439dictionaryWithObject:forKey: 390dictionaryWithObjects:forKeys: 390dictionaryWithObjectsAndKeys: 390keyEnumerator 400

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 12: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

keysOfEntriesPassingTest: 396keysSortedByValueUsingSelector: 395objectForKey: 392Schlüssel 389Schlüsselmenge 389

NSDictionary-Literal 391NSDirectoryEnumerator 420NSDistributedNotificationCenter 534

defaultCenter 535NSDocumentDirectory 413NSEnumerator 398

nextObject 398NSError 350

alertWithError 353errorWithDomain:code:userInfo: 350initWithDomain:code:userInfo: 350

NSEventTrackingRunLoopMode 604NSException 145, 349

exceptionWithName:reason:userInfo: 349

raise 349raise:format 349

NSFastEnumeration 485countByEnumeratingWithState:ob-

jects:count: 487NSFastEnumerationState 487NSFileCreationDate 417NSFileGroupOwnerAccountID 417NSFileHandle 440

acceptConnectionInBackgroundAndNo-tify 442

blockierender Zugriff 441fileHandleForReadingAtPath: 440fileHandleForUpdatingAtPath: 440fileHandleForWritingAtPath: 440initWithFileDescriptor:closeOnDealloc:

442Kommunikation über Sockets 441nicht-blockierender Zugriff 441NSFileHandleConnectionAcceptedNoti-

fication 442NSFileHandleNotificationDataItem 444NSFileHandleNotificationFileHandleI-

tem 443NSFileHandleReadCompletionNotifica-

tion 443readDataOfLength: 441readDataToEndOfFile 441readInBackgroundAndNotify 443

NSFileHandleConnectionAcceptedNotificati-on 442

NSFileHandleNotificationDataItem 444NSFileHandleNotificationFileHandleItem

443NSFileHandleOperationException 441NSFileHandleReadCompletionNotification

443NSFileManager 414

contentsEqualAtPath:andPath: 420copyItemAtPath:toPath:error: 414copyPath:toPath:handler: 419createDirectoryAtPath:withIntermedia-

teDirectories:attributes:error: 418

createFileAtPath:contents:attributes: 417defaultManager 414enumeratorAtPath: 420fileExistsAtPath: 419fileManager:shouldCopyItemAtPath:to-

Path: 415fileManager:shouldMoveItemAtPath:to-

Path: 416fileManager:shouldProceedAfterError:

419fileManager:shouldProceedAfterEr-

ror:copyingItemAtPath:toPa-th: 415

fileManager:shouldProceedAfterEr-ror:movingItemAtPath:toPa-th: 416

fileManager:shouldProceedAfterEr-ror:removingItemAtPath: 417

fileManager:shouldRemoveItemAtPa-th: 417

fileManager:willProcessPath: 419Handler für Operationen 418moveItemAtPath:toPath:error: 415movePath:toPath:handler: 419removeFileAtPath:handler: 419removeItemAtPath:error: 416setDelegate: 414

NSFileOwnerAccountName 417NSFilePosixPermissions 417NSGarbageCollector 292NSHost 430

hostWithName: 430NSIndexSet 519NSInputStream 423

hasBytesAvailable 423

767© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 13: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

768

inputStreamWithFileAtPath: 423read:maxLength: 423

NSInteger 307NSInvocation 85, 607NSInvocationOperation 571NSKeyedArchiver 314

archivedDataWithRootObject: 314archiveRootObject:toFile: 314finishEncoding 318initForReadingWithData: 318initForWritingWithMutableData: 317

NSKeyedUnarchiverunarchiveObjectWithData: 314unarchiveObjectWithFile: 314

NSKeyValueChangeNewKey 520NSKeyValueChangeNotificationIsPriorKey

520NSKeyValueChangeOldKey 520NSKeyValueCoding 495

accessInstanceVariablesDirectly 498countOf: 506dictionaryWithValuesForKeys: 504get:range: 507insertObject:inAtIndex: 508mutableArrayValueForKey: 508mutableArrayValueForKeyPath: 508objectInAtIndex: 506removeObjectFromAtIndex: 508replaceObjectInAtIndex:withObject: 508setValue:forKey: 496setValue:forKeyPath: 496setValue:forUndefinedKey: 498setValuesForKeysWithDictionary: 504validate:error: 512validateValue:forKey:error: 514valueForKey: 496valueForKeyPath: 496

NSKeyValueObservingOptionInitial 518NSKeyValueObservingOptionNew 518, 520NSKeyValueObservingOptionOld 518NSKeyValueObservingOptionPrior 518, 520NSKeyValueObservingOptions 518NSLiteralSearch 326NSLocalDomainMask 413NSLocalizedString 638NSLocalizedStringFromTable 639NSLocalizedStringFromTableInBundle 639NSLocalizedStringWithDefaultValue 639NSLock 588

NSLocking 589NSLog() 324NSMachBootstrapServer 624NSMachErrorDomain 350NSMachPort 617NSMakeRange 307NSMappedRead 438NSMessagePort 617, 625NSMessagePortNameServer 624, 626NSMethodSignature 607NSModalPanelRunLoopMode 604NSMutableArray 360

addObject: 361arrayWithCapacity: 360filterUsingPredicate: 374initWithCapacity: 360insertObject:atIndex: 361removeAllObjects 364removeLastObject 364removeObject: 363removeObjectAtIndex: 362replaceObjectAtIndex:withObject: 364

NSMutableData 308, 310appendBytes:length: 312appendData: 312dataWithCapacity: 311dataWithLength: 311mutableBytes 310replaceBytesInRange:withBytes: 312replaceBytesInRange:withBytes:

length: 313resetBytesInRange: 313setLength 310

NSMutableDictionary 392removeObjectForKey: 394setObject:forKey: 392

NSMutableSet 381addObject: 381intersectSet: 383minusSet: 383removeAllObjects 381removeObject: 381unionSet: 383

NSMutableString 328appendFormat: 328appendString: 328deleteCharactersInRange: 329insertString:atIndex: 329

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 14: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

replaceCharactersInRange:withString: 329

replaceOccurrencesOfString:with-String:options:range: 329

NSNameServer 624NSNetworkDomainMask 413NSNotification 530

notificationWithName:object: 530notificationWithName:object:userInfo:

530NSNotificationCenter 529, 531, 532

addObserver:selector:name:object: 533defaultCenter 531postNotification 532postNotificationName:object: 532removeObserver: 533

NSNotificationQueue 537defaultQueue 537enqueueNotification:postingStyle: 538enqueueNotification:postingStyle:coale-

sceMask:forModes: 538NSNull 348

null 348NSNumber 346NSNumericSearch 326NSObject 52, 192, 231, 236, 450, 612NSOperation 560, 562NSOperationQueue 564

addOperation: 564NSOperationQueuePriority 568NSOrderedAscending 326NSOrderedDescending 326NSOrderedSame 326NSOSStatusErrorDomain 350NSOutputStream 425

hasSpaceAvailable 426outputStreamToFileAtPath:append: 425write:maxLength: 426

NSPathUtilities.h 413NSPort 617NSPortMessage 618NSPOSIXErrorDomain 350NSPostASAP 539NSPostingStyle 538NSPostNow 538NSPostWhenIdle 539NSPredicate 373, 375

predicateWithBlock: 375predicateWithFormat: 375predicateWithValue: 375

NSPrincipalClass 647NSProtocolFromString 453NSRange 307NSRecursiveLock 593NSRunLoop 602, 605NSRunLoopCommonModes 604NSSearchPathDirectory 413NSSearchPathDomainMask 413NSSearchPathForDirectoriesInDomains 412NSSelectorFromString 454NSSet 379

allObjects 379anyObject 379containsObject: 379count 379enumerateObjectsUsingBlock: 401, 403intersectsSet: 382isEqualToSet: 383isSubsetOfSet: 383member: 379objectsPassingTest: 385

NSSocketPort 441, 617, 627socket 442

NSSocketPortNameServer 624, 627NSSortDescriptor 370

initWithKey:ascending: 370initWithKey:ascending:selector: 370

NSStream 422, 428close 422getStreamsToHost: port:inputStre-

am:outputStream: 430NSStreamFileCurrentOffsetKey 422open 422removeFromRunLoop:forMode: 428scheduleInRunLoop:forMode: 428setDelegate: 428stream:handleEvent: 428streamError 422streamStatus 422

NSStream.h 422NSStreamEventErrorOccurred 432NSStreamEventHasBytesAvailable 433NSStreamEventHasSpaceAvailable 432NSStreamFileCurrentOffsetKey 422NSStreamStatus 422NSString 318

canBeConvertedToEncoding: 321caseInsensitiveCompare: 367characterAtIndex: 318compare: 326

769© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 15: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

770

compare:options: 325compare:options:range: 325cStringUsingEncoding: 321dataUsingEncoding: 321dataUsingEncoding:allowLossyConver-

sion: 321getCString:maxLength:encoding: 321initWithCString: 320initWithData:encoding: 320initWithFormat: 322initWithFormat:locale: 323length 318localizedStringWithFormat: 323rangeOfString: 325rangeOfString:options: 325rangeOfString:options:range: 325stringByAppendingFormat: 328stringByAppendingString: 328stringByReplacingCharactersInRan-

ge:withString: 329stringByReplacingOccurrencesOf-

String:withString: 329stringByReplacingOccurrencesOf-

String:withString:options:ran-ge: 329

stringWithContentsOfFile:encoding:er-ror: 436

stringWithContentsOfURL:encoding:er-ror: 438

stringWithCString:encoding: 320stringWithFormat: 322stringWithUTF8String: 320substringFromIndex: 327substringToIndex: 327substringWithRange: 327UTF8String 321writeToFile:atomically:encoding:error:

437NSStringCompareOptions 325NSStringEncoding 320, 321NSStringFromProtocol 453NSStringFromSelector 454NSSystemDomainMask 413NSThread 560, 573NSTimeInterval 330NSTimer 599, 607NSTimeZone 336

abbreviationDictionary 337initWithName: 336knownTimeZoneNames 337

timeZoneWithAbbreviation: 336timeZoneWithName: 336

NSUInteger 307NSUnarchiver 316NSUncachedRead 438NSUndefinedKeyException 498NSURLErrorDomain 351NSUserDomainMask 413NSValue 342

getValue: 345initWithBytes:objCType: 343nonretainedObjectValue 345objCType 345pointerValue 345pointValue 345rangeValue 345rectValue 345sizeValue 345valueWithBytes:objCType: 343valueWithNonretainedObject: 343valueWithPoint: 344valueWithPointer: 343valueWithRange: 344valueWithRect: 344valueWithSize: 344

NSZoneFromPointer 233NSZoneName 233NSZoneSetName 233NULL 38, 748null 348Null-Objekt 38, 43

OOberklasse 51objc_allocateClassPair 471objc_getClassList 456objc_getProtocol 458objc_msgSend 77objc_msgSend_fpret 78objc_msgSend_stret 78objc_msgSendSuper 79objc_property_t 464objc_registerClassPair 472objc-runtime.h 455objCType 345object_getClass 455object_getIvar 467object_setClass 472object_setIvar 467objectAtIndex: 357

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 16: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

objectAtIndexedSubscript: 357objectEnumerator 398, 399objectForKey: 392objectInAtIndex: 506Objective-C-Runtime-API 77, 455objectsPassingTest: 385Objekt 35, 37

anonymes 126kopieren 233

Objektdatei 720Objekterzeugung 66

alloc 67Allokation 66, 71Convenience-Konstruktor 68, 71init 67, 69Initialisierung 66, 71Initialisierungsmethode 67, 68

Objektorientierte Programmierung 35Convenience-Konstruktor 242Dynamic Binding 43, 82Dynamic Typing 38, 80id 38IMP 42, 81Information Hiding siehe Information

HidingInstanz 44Instanzenvariable 37, 48, 54, 81interner Zustand 36Kapselung siehe KapselungKlasse 39, 44Klassenimplementierung 49Klasseninterface 47, 54, 60Klassenmethode 48, 60, 64Klassen-Objekt 44Klassenvariable 65Methode 36, 37, 48, 60Methodenaufruf 39, 77Methodenimplementierung 49, 61, 80Modularisierung 36Nachricht 35, 37, 39Namenskonvention 44, 55, 60nil 38, 43Null-Objekt 38, 43Oberklasse 51Objekt 35, 37Polymorphismus siehe Information Hi-

dingSelektor 42self 61, 80

Static Typing 46super 62, 79, 84Unterklasse 52Vererbung 51Wiederverwendung 36Wurzelklasse 52

objektorientierte ProgrammierungObjekterzeugung siehe Objekterzeu-

gungObserver siehe BeobachterObserver-Pattern 516

Beobachter 517Subjekt 517

observeValueForKeyPath:ofObject:chan-ge:context: 520

openbei NSStream 422

Operation 560, 561Abhängigkeiten 570atomare 585Priorität 568

Operation-Queue 564Operator 739

Arithmetischer 740Bedingter Ausdruck 740Bit-Manipulationen 741Dereferenzierungs- 748Index- 751Logischer 743Referenzierungs- 748Strukturzugriff 754Typ- 744Vergleichs- 741Wertzuweisung- 742

Operatorprioritäten 745OSAtomic.h 586OSAtomicAdd32 586OSAtomicAdd64 586OSAtomicAnd32 586OSAtomicCompareAndSwap32 587OSAtomicDecrement32 586OSAtomicDecrement64 586OSAtomicIncrement32 586OSAtomicIncrement64 586OSAtomicOr32 586OSAtomicXor32 586OSMemoryBarrier 587OutputStream 421, 425outputStreamToFileAtPath:append: 425

771© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 17: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

772

PParameter 710pathComponents 407pathExtension 412pathForResource:OfType:inDirectory: 646pathForResources:ofType: 645pathWithComponents: 408performSelector:onThread:withObject:wait-

UntilDone: 613performSelector:onThread:withObject:wait-

UntilDone:modes: 613performSelector:withObject:afterDelay: 614performSelector:withObject:afterDelay:in-

Modes: 614performSelectorInBackground:withObject:

576performSelectorOnMainThread:withOb-

ject:waitUntilDone: 614performSelectorOnMainThread:withOb-

ject:waitUntilDone:modes: 614Perform-Selektor-Quelle 612Pfad-Separator 407Pfadstring 407

erstellen 408lastPathComponent 412manipulieren 410normalisieren 409pathComponents 407pathWithComponents: 408stringByAppendingPathComponent:

411stringByAppendingPathExtension: 411stringByDeletingLastPathComponent

412stringByDeletingPathExtension 412stringByExpandingTildeInPath 409stringByResolvingSymlinksInPath 409stringByStandardizingPath 409

Pointer 748pointerValue 345pointValue 345Polymorphismus 37, 42port 617Port-basierte Quelle 617portForName: 625portForName:host: 625, 629postNotification 532postNotificationName:object: 532postNotificationName:object:userInfo: 532Prädikat siehe NSPredicate

Präprozessor 721predicateWithBlock: 375predicateWithFormat: 375predicateWithValue: 375principalClass 647printf 703Priorität 582Property 105, 257, 285

Attribute 109eigene Implementierung 114Neudefinition 116synthetisch 106

Property List 439property siehe Eigenschaftproperty_getAttribute 465property_getName 465Protocol 135, 453protocol_conformsToProtocol 457protocol_copyProtocolList 457protocol_getName 458protocol_getProperty 465Protokoll

anonyme Objekte beschreiben 128definieren 124erforderliche Methoden 137erfüllen 125formales 121Hierarchie 130informell 139optionale Methoden 137verwenden 124zyklische Verweise 133

Provisioning Profile 218Punkt-Operator 116

QQuelldatei 28, 719Quelle 596, 606

benutzerdefinierte 629Perform-Selektor- 612Port-basierte 617Timer- 607

Quelle siehe StreamqueuePriority 568

Rraise 349

format 349rangeOfString: 325rangeOfString:options: 325

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 18: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

rangeOfString:options:range: 325rangeValue 345read:maxLength: 423readDataOfLength: 441readDataToEndOfFile 441readInBackgroundAndNotify 443readonly 110readwrite 109rectValue 345Reference Counting 236, 265

Abhängigkeitsgraph 238Besitz 238, 245Freigabe 238, 255Schwache Referenz 261Verhaltensregeln 239Zyklische Abhängigkeiten 258

referenceCount 267Referenz

schwache 300Referenzdatum 330Referenzierung 748registerPort

name 624Rekursion 712release 236, 239, 247, 267, 293removeAllObjects

bei NSMutableArray 364bei NSMutableSet 381

removeDependency: 570removeFileAtPath:handler: 419removeFromRunLoop:forMode: 428, 617removeItemAtPath:error: 416removeLastObject 364removeObject:

bei NSCountedSet 387bei NSMutableArray 363bei NSMutableSet 381

removeObjectAtIndex: 362removeObjectForKey: 394removeObjectFromAtIndex: 508removeObserver: 533removeObserver:forKeyPath: 519removePort:forPort: 617removePortForName 625replaceBytesInRange:withBytes: 312replaceBytesInRange:withBytes:length: 313replaceCharactersInRange:withString: 329replaceObjectAtIndex:withObject: 364replaceObjectInAtIndex:withObject: 508

replaceOccurrencesOfString:withString:op-tions:range 329

resetBytesInRange: 313respondsToSelector: 137, 454retain 236, 239, 267, 293retainCount 236, 293return-Anweisung 703, 738reverseObjectEnumerator 399Root Object Siehe WurzelobjektRückgabewerte 710run 605Run Loop 596

Quellen 596Starten 597Timer 599

runModebeforeDate 605

runtime.h 455

SSammlung

geordnet siehe Arrayungeordnet siehe Set

Sammlung siehe CollectionscheduledTimerWithTimeInterval:invocati-

on:repeats: 607scheduledTimerWithTimeInterval:tar-

get:selector:userInfo:repeats: 599, 607scheduleInRunLoop:forMode: 428, 617Schleifen 736Schnelle Iteration 482

Implementierung 491Syntax 483Vorteile 485

Schwache Referenz 261, 300SEL 453sel_getName 458sel_registerName 458Selektor 42self 61, 80sendBeforeDate 618Senke siehe StreamSet 378

Beziehungen zwischen Sets 382Differenz 383Durchlaufen mittels Blöcken 401Filtern mittels Blöcken 385Gleichheit 383Schnittmenge 382Teilmenge 383

773© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 19: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

774

unveränderlich siehe NSSetveränderlich siehe NSMutableSetVereinigung 383

setArgumentatIndex 608

setDateFormat: 340setDateStyle: 339setDelegate:

bei NSFileManager 414bei NSStream 428

setFireDate 611setLength: 310setMaxConcurrentOperationCount: 564setMsgid 618setObject:forKey: 392setQueuePriority 568setSelector 608setStackSize: 582setSuspended 567setTarget 608Setter 104, 256setter= 110setThreadPriority: 582setTimeStyle: 339setTimeZone: 337setValue:forKey: 496setValue:forKeyPath: 496setValue:forUndefinedKey: 498setValuesForKeysWithDictionary: 504Shallow Copy 234sharedInstance 624short 706signal 595signatureWithObjCTypes 607signed 706Simulator 208Singleton 547

Absicherung 549einfach 548hybrid 552Threadsicher 552

sizeof 707sizeValue 345skipDescendents 420sleepForTimeInterval: 574sleepUntilDate: 574socket 442sort descriptor siehe Sortierungsbeschrei-

bung

sortedArrayUsingComparator: 369sortedArrayUsingDescriptors: 372sortedArrayUsingFunction:context: 368sortedArrayUsingSelector: 366Sortierungsbeschreibung 370Speicher

statischer 226Speicheraufbau 58Speicherbarriere 554, 587Speicherzone 232Sprunganweisung 738stackSize 583Standardpfad 412Starke Referenz 300start 563, 573static 65, 719Static Typing 46Statische Variable 65, 718

Gültigkeitsbereich 719Lebensdauer 719

Statischer Speicher 226stdio.h 702Stream 421

blockierender Zugriff 422Kommunikation über Sockets 429nicht-blockierender Zugriff 428

stream:handleEvent: 428streamError 422streamStatus 422stringByAppendingFormat: 328stringByAppendingPathComponent: 411stringByAppendingPathExtension: 411stringByAppendingString: 328stringByDeletingLastPathComponent 412stringByDeletingPathExtension 412stringByExpandingTildeInPath 409stringByReplacingCharactersInRange:with-

String: 329stringByReplacingOccurrencesOfString:wi-

thString: 329stringByReplacingOccurrencesOfString:wi-

thString:options:range: 329stringByResolvingSymlinksInPath 409stringByStandardizingPath 409stringFromDate: 340String-Literal 319stringWithContentsOfFile:encoding:error:

436

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 20: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

stringWithContentsOfURL:encoding:error: 438

stringWithCString:encoding: 320stringWithFormat: 322stringWithUTF8String: 320Strom siehe Streamstrong 112

als Propertyattribut 257struct 753Strukturen 753subdataWithRange: 310Subjekt 517Subscripting 357substringFromIndex: 327substringToIndex: 327substringWithRange: 327super 62, 79, 84superclass 83, 451switch-Anweisung 734Synchronisation 583

@synchronized 590atomare Operation 585Condition 595Lock 588, 590, 593Speicherbarrieren 587

TtableView:cellForRowAtIndexPath: 214tableView:numberOfRowsInSection: 214Thread 559, 560, 573

Autorelease Pool 579beenden 580Kosten 578Laufzeitstack 582Memory Management 579Priorität 582Synchronisation siehe Synchronisation

ThreadingDeadlock 593

Threading-Kosten 578threadPriority 582time_t 331timeIntervalSinceReferenceDate 330Timer 599Timer-Quelle 607timerWithTimeInterval:invocation:repeats:

607timerWithTimeInterval:target:selector:use-

rInfo:repeats: 602, 607

timeZoneWithAbbreviation: 336timeZoneWithName: 336Toll Free Bridging 287Toll-free bridged 194to-many relationship siehe 1:m-Beziehungto-one relationship siehe 1:1-Beziehungtrue 30tryLock 590Typausdruck 462Typdefinition 747typedef 747Typ-Operator 744

UUIKit 207UITableViewController 214UITableViewDataSource 214UITableViewDelegate 214unarchiveObjectWithData: 314unarchiveObjectWithFile: 314unionSet: 383unlock 589unlockWithCondition: 594unsigned 706Unterklasse 52User Info Dictionary 352UTF8String 321

Vvalidate:error: 512validateValue:forKey:error: 514valueForKey: 496valueForKeyPath: 496valueWithBytes:objCType: 343valueWithNonretainedObject: 343valueWithPoint: 344valueWithPointer: 343valueWithRange: 344valueWithRect: 344valueWithSize: 344Variable 714

globale 717Instanzenvariable 81Klassenvariable 65lokale 714statische 65, 718

Vererbung 51Vererbungshierarchie 52Vergleichsoperator 741

775© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324

Page 21: Objective-C 2.0 – Programmierung für Mac® OS X und iPhone ......Stichwortverzeichnis 764 keysOfEntriesPassingTest: 396 keysSortedByValueUsingSelector: 395 Key-Value Coding 495,

Stichwortverzeichnis

776

View 196Virtuelle Adresse 225void 705, 710, 749volatile 588

Wwait 595waitUntilAllOperationsAreFinished 565weak 112weak reference siehe Schwache ReferenzWertzuweisungsoperator 742while-Schleife 736Wiederverwendung 36willChangeForKey: 521write:maxLength: 426writeToFile:atomically: 438writeToFile:atomically:encoding:error: 437writeToFile:options:error: 438Wurzelklasse 52Wurzelobjekt 314

XXCode

Master-Detail Application 208Xcode 198

Cocoa Application 201Command Line Tool 198

YYES 29

ZZeichenketten 752Zeichenkettenkonstanten 708Zeichenkonstanten 707Zeilenkommentar 704Zeitintervall

NSTimeInterval 330Zeitpunkt

NSDate 330Zeitzone

NSTimeZone 336Zombie 297zone 233Zugriffsmethode 104

deklarativ siehe PropertyGetter 104Namenskonvention 104Setter 104

Zustandinterner 37

Zustand siehe Interner ZustandZyklische Abhängigkeiten 258

© des Titels »Objective C 2.0« (ISBN 978-3-8266-8324-4) 2013 by Verlagsgruppe Hüthig Jehle Rehm GmbH, Heidelberg. Nähere Informationen unter: http://www.mitp.de/8324