Naming conventions for BOOL Obj-C 2 properties?

前端 未结 5 1416

I have a readonly BOOL property. What is dominant naming pattern here?

Background: for plain old method declarations, the accepted pattern

- (BOOL)is         


        
5条回答
  •  被撕碎了的回忆
    2020-12-14 18:02

    You'd want to use the one that works with KVO, KVC and bindings etc.

    I remember reading that in the Docs that KVO et al. will look for is, set as well as get and many others like countOf<key>

    The KVC Compliance Checklist explains it much better than I could ever do.

提交回复
热议问题