Would it make any sense to put class extensions in their own .h files and #import them selectively to get various levels of visibility for a class’ methods and properties? If this is a bad idea (or would not work), why?
Would it make any sense to put class extensions in their own .h files
Share
It is a great idea and exactly why Class Extensions were designed (and why they are different than categories).
Namely, you can:
Foo.h
Foo_FrameworkOnly.h
Foo.m
And effectively have a property that is publicly readonly and privately read write for only the implementation files that import Foo_FrameworkOnly.h.