Download Garbage Collection Programming Guide (Retired
Transcript
Using Garbage Collection 25 Cycles 25 Weak and Zeroing Weak References 25 Managing Opaque Pointers 25 Global Object Pointers 28 Interior Pointers 29 Compiler Flag 31 Implementing a finalize Method 32 Design Patterns 32 Efficiency 32 Messaging Other Objects 33 Avoiding Resurrection 33 Managing an External Resource 34 Inapplicable Patterns 36 Reference counting 36 dealloc 36 Enumerations 37 Resource wrapper objects 37 Leaked but not lost objects 38 Delegate references 38 Memory zones 38 Using Core Foundation with Garbage Collection 39 Allocation 39 Memory Management Semantics 39 Core Foundation Variables 42 Instance variables 42 Local Variables 43 Core Foundation Collection Semantics 44 Garbage Collection API 46 Foundation 46 NSObject 46 NSAutoreleasePool 46 NSGarbageCollector 47 Collection Classes 47 NSValue 47 NSThread 47 Retired Document | 2012-07-23 | Copyright © 2012 Apple Inc. All Rights Reserved. 3