Skip to content

Conversation

@ayanhan
Copy link
Contributor

@ayanhan ayanhan commented Dec 15, 2025

Per Objective-C memory management conventions, methods NOT starting with alloc/new/copy/mutableCopy return +0 (autoreleased) objects. Since we keep references to these objects, calling .retained() is correct.
Reference: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmRules.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant