Frameworks and the c74support folder
Pardon me for what is probably a fairly ignorant question, but I’m
trying to grasp the relationship between the /Library/Frameworks stuff
and the c74support folder.
The frameworks MaxAPI.framework MaxJSRef.framework,
MaxAudioAPI.framework and JitterAPI.framework contains a lot of the same
headers as the c74support folder, but there are some headers in
c74support that are not present in the framworks. The Max UB SKD have
both the frameworks and c74support in their search paths, but as far as
I can see the Xcode projects for Jamoma do not seem to have c74support
in the search path and still compiles fine. These projects were set up
by Tim, so I am sure that he is knowing exactly what he is doing.
Are the frameworks supposed to replace the c74support folder when
compiling Xcode projects, or are they both still required?
On Jul 28, 2006, at 1:54 AM, Trond Lossius wrote:
> Are the frameworks supposed to replace the c74support folder when
> compiling Xcode projects, or are they both still required?
You are free to use either one. To use the framework style includes,
you need to use the apple specific framework include syntax. The
c74support versions are "flat" and easier to configure for cross
platform building of exisiing max object source (unless you already
have one master header file for you objects you change per platform)
FWIW, our SDK projects all use the c74support versions. We only
included the Framework headers for people (like Tim) who wanted to do
it in a more "Apple-centric" way.
In addition to the two approaches that Joshua mentioned, there is
actually a third approach which is hybrid of the two (which is what I use).
This hybrid approach is to use the standard includes, ala:
And then add the Frameworks/headers folder to header searchpaths in the
Xcode target. The benefit here is that the code will compile on both
platforms still, meanwhile the headers are always in the same
predictable location on all OS X machines so you don’t have figure out
where the c74support folder goes on any given system.
Forums > Dev