Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我一直喜欢 Xcode 的脚本菜单以及自动生成访问器方法定义和声明的能力。但看起来在 Xcode4 中已经没有这样的东西了。我知道我可以使用属性,但有时仍然需要访问器方法。还有其他方法可以自动创建它们吗?
Xcode 4 现在在“Xcode”菜单下具有“行为”。您可以在此处创建自定义行为,这些行为可用于执行脚本(除其他外)。
见https://devforums.apple.com/message/380673#380673