What is this double underscore in Cocoa

前端 未结 4 1068
花落未央
花落未央 2020-12-05 22:10

The single underscore in Objective-C is apparently reserved for Apple\'s \"internal\" use (and was available for use with private instance variables prior to Apple\'s claim)

4条回答
  •  佛祖请我去吃肉
    2020-12-05 22:21

    It's just a variable-naming convention. It doesn't do anything. It's a way for the program-writers to remind themselves, "This is a private variable."

提交回复
热议问题