문제

Does anything in Objective-C use associative references under the hood? For example, do property setter and getter use it behind the scene?

도움이 되었습니까?

해결책

No. That would be much too slow.

Some classes in Cocoa use them, but nothing in ObjC itself.

다른 팁

I would think associative references would be used explicitly by developers extending exiting classes. When the compiler generates getters and setters it has access to the source code.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top