我正在尝试编写一个objective-c 框架,并且我希望方法和属性仅在框架内可见。我知道我可以在实现文件内的类扩展中定义它们,但是其他类将无法访问它们。
One way I was thinking to do it was to define a category for example MyClass+Internals and make that header private. but make the MyClass.h header public. I was wondering if there was a better way of doing this. Also, I'm not sure you can define properties within a category I thought it was only methods. Thanks for any suggestions or feedback.