Apple states that frameworks which provide header files should have a group header which includes all the public stuff, like:
#import <JavaVM/JavaVM.h>
Where JavaVM.h imports:
#import <JavaVM/NSJavaVirtualMachine.h>
#import <JavaVM/NSJavaConfiguration.h>
I understand this convenience, but my problem is what to do with files which need other framework files, E.G.:
[All files in Framework.framework/Headers]
Manager.h
====================
#import <Framework/File.h>
...
====================
File.h
====================
...
====================
Framework.h
====================
#import <Framework/Manager.h>
#import <Framework/File.h>
====================
Is this correct? Do I redundantly import the files, relying on the preprocessor to eliminate duplicates, or should I just import the Manager.h file in the framework header (A real pain in the neck to keep straight)?
Also, how should framework files import other headers in the framework? The only thing I have been able to make work is the style above, but I have had problems with that as well. (I.E., #import "File.h" from Manager.h does not work when using the framework, but works when building the framework.)