Ownership of Memory Management
2013-12-15 22:28
232 查看
1. You Have Ownership of Any Objects You Create
You use a method whose name begins with one of the following, which means that you are creating an object and have ownership of it.alloc
new
copy
mutableCopy
However, the naming convention is not applied to the following methods.
allocate
newer
copying
mutableCopyed
2. [NSObject new] and [[NSObject alloc] init] do exactly the same thing.
相关文章推荐
- C#使用ManagementObjectSearcher来获取系统信息时会有out of memory的异常
- Power Management of Hybrid DRAM/PRAM-Based Main Memory
- Android Memory Management, OutOfMemoryError
- C#Memory Management for Unity Developers(Part 1 of 3)
- C#Memory Management for Unity Developers (part 2 of 3)
- C# Memory Management for Unity Developers (part 3 of 3)
- Memory Management of Instance Variables (Non-ARC)
- The effective memory management of C++
- 给Unity开发者的C#内存管理(第二部分) C# Memory Management for Unity Developers (part 2 of 3)
- Automatic Tuning of Memory Management
- HUNTING YOUR LEAKS: MEMORY MANAGEMENT IN ANDROID (PART 2 OF 2)
- Memory Management of Instance Variables (ARC)
- Wrangling Dalvik: Memory Management in Android (Part 1 of 2)
- Summary of Memory Management Methods
- An overview of memory management in QEMU
- Effective Objective-C 2.0: Item 32: Beware of Memory Management with Exception-Safe Code
- 转自mathworks,matlab Memory Management Guide,解决out of memory
- What is the main goal of the Memory Management?
- This Memory Management Tip Could Save You Hours of Frustration!
- Memory Management Guide(matlab编程时经常遇到out of memory 如何解决?)