Cocoa Interface
From Lazarus-ccr
Contents |
[edit] Other Interfaces
- Lazarus known issues (things that will never be fixed) - A list of interface compatibility issues
- Win32/64 Interface - The winapi interface for Windows 95/98/Me/2K/XP/Vista, but not CE
- GTK1 Interface - The gtk1 for Unixes, Mac OS X, Windows
- GTK2 Interface - The gtk2 for Unixes, Mac OS X, Windows
- Carbon Interface - The Carbon Interface for Mac OS X
- Qt Interface - The Qt 4 Interface for Unixes, Mac OS X and linux-based PDAs
- Windows CE Interface - For Pocket PC and Smartphones
- fpGUI Interface - A widgetset completely written in Object Pascal
- Cocoa Interface - The Cocoa Interface for Mac OS X
[edit] Platform specific Tips
- OS X Programming Tips - Lazarus installation, useful tools, Unix commands, and more...
- WinCE Programming Tips - Using the telephone API, sending SMSes, and more...
- Windows Programming Tips - Desktop Windows programming tips.
[edit] Interfaces Development Articles
- Carbon interface internals - If you want to help improving the Carbon interface
- Windows CE Development Notes - For Pocket PC and Smartphones
- Adding a new interface - How to add a new widget set interface
- LCL Defines - Choosing the right options to recompile LCL
[edit] Compiling the Cocoa Interfaces
1 - Download PasCocoa from subversion
Instructions here: PasCocoa#Subversion
2- Add the path to PasCocoa to your fpc.cfg file
In a standard installation this file will be located in: /etc/fpc.cfg
Please add the the end of this file the following (remember to adapt it to the paths in your system!):
# Search path for Cocoa bindings -Fu/Users/felipe/Programas/lazarus-ccr/bindings/objc -Fu/Users/felipe/Programas/lazarus-ccr/bindings/pascocoa/appkit -Fu/Users/felipe/Programas/lazarus-ccr/bindings/pascocoa/foundation -Fu/Users/felipe/Programas/lazarus-ccr/bindings/pascocoa/applicationservices/coregraphics
Since the file is write protected, only administrator accounts will be able to edit it. It is also possible to have a local fpc.cfg file. For more information google or ask in the mailling list.
3 - Compile a test PasCocoa project
In Lazarus, open /Users/felipe/Programas/lazarus-ccr/bindings/pascocoa/example/statusitem/statusitem.lpi (or similar acording to your local paths) and build the project.
This should guarantee that PasCocoa was installed correctly and create the .o files for it.
4 - Compile LCL-Cocoa
In Lazarus go to the Tools-->Configure Build Lazarus menu. Go to advanced, set everything to NONE and only LCL to clean+build, set the widgetset to Cocoa and push the Build button.
You can now build LCL-Cocoa applications by setting the target widgetset to cocoa in the Compiler Options dialog of your projects.
[edit] Roadmap
Located here: Roadmap#Status_of_features_on_each_widgetset
