Best practice for Cocoa category naming conventions

后端 未结 2 1910
谎友^
谎友^ 2021-01-17 20:45

I am tidying up my ancient Cocoa code to use modern naming conventions. There has been lots of discussion on best practices, but I\'m unsure of one thing.

I\'m thin

2条回答
  •  青春惊慌失措
    2021-01-17 21:27

    I emailed the Apple Application Frameworks Evangelist about this, and got a reply that recommended not prefixing category method names. Which conflicts with the advice in the aforelinked WWDC10 session, but I assume reflects Apple's current thinking.

    He recommended just looking at the beta seed API diffs to spot conflicts, which is what I've always been doing.

提交回复
热议问题