07-21-2023, 04:12 PM
I'm wondering what decides whether you're allowed to use `<Header.h>` or `"Header.h"` when you're importing files in Objective-C. So far my observation has been that you use the quote marks `""` for files in your project that you've got the implementation source to, and angle brackets `<>` when you're referencing a library or framework.
But how exactly does that work? What would I have to do to get my own classes to use the brackets? Right now Xcode will not allow me to do that for my own headers.
Also, by looking in some frameworks headers, I see that the headers reference each other with `<frameworkname/file.h>`. How does _that_ work? It looks a lot like packages in Java, but as far as I know, there is no such thing as a package in Objective-C.
But how exactly does that work? What would I have to do to get my own classes to use the brackets? Right now Xcode will not allow me to do that for my own headers.
Also, by looking in some frameworks headers, I see that the headers reference each other with `<frameworkname/file.h>`. How does _that_ work? It looks a lot like packages in Java, but as far as I know, there is no such thing as a package in Objective-C.