General Tab:
Follow these steps to create a new application project using Xcode and linking with the PISD libraries. It is assumed that you have a working knowledge of Xcode.
create a new project "Application→Carbon Application" with the desired project name and path.
In the project "Sources" group remove the automatically created .pch and .c files. Remove both references and files from disk as they are not needed. You can now add your own source code into this group. Make sure you add the files as relative to your project.
In the project "Resources" group remove all the contents (references only).
In finder move these resource files into a sub folder "resources/macos/".
Re-add these files in their new location. Make sure you add the files as relative to your project.
create a new project group called "Projects" and add the macos.xcodeproj and modules.xcodeproj files. Make sure you add the files as relative to your project.
Select the linking icon for the libraries of each of these projects (the red target symbol on the right). It may be necessary to align the configurations by opening the sub project and selected the same build configuration as in the parent project.
add "AGL.framework", "OpenGL.frmaework" and "QuickTime.framework" frameworks to the project using an absolute path.
open the target settings window and change the following
General Tab:
Add in the platform and modules targets as dependencies.
Build Tab:
Build Products Path: app Intermediate Build Files Path: build Per-configuration Build Products Path: $(BUILD_DIR) Header Search Paths: ../../pisd_libs/platform/include ../../pisd_libs/platform/include/macos ../../pisd_libs/modules/code/** $(HEADER_SEARCH_PATHS) Library Search Paths: $(LIBRARY_SEARCH_PATHS) ../../pisd_libs/platform/lib ../../pisd_libs/modules/lib ZeroLink: off Product Name: <app_name>_macosd (for debug target) <app_name>_macosr (for release target) Info.plist File: resources/macos/Info.plist Prefix File: ../../pisd_libs/platform/include/macos/macos_dev_prefix.h (for debug target) ../../pisd_libs/platform/include/macos/macos_prefix.h (for release target)
Follow these steps to add an application icon to your project. This is the icon that will be show by the MacOS in the doc bar and alt-tab display.
Create an icon .icns resource file
Place it in the "resources/macos" folder
Add it to the resources group in the xcode project
Edit the Info.plist file and change the "CFBundleIconFile" value string to "icon"