SFML/examples/cocoa
2013-09-20 18:52:57 +02:00
..
resources Update logos for Cocoa example 2013-06-27 23:29:27 +02:00
CMakeLists.txt Fixed IDE folder of example "Cococa" 2013-06-14 15:01:29 +02:00
CocoaAppDelegate.h Fix compilation issue on 10.5 2013-01-19 10:55:52 +01:00
CocoaAppDelegate.mm Remove trailing spaces 2013-09-20 18:52:57 +02:00
main.m Updated the copyright text 2012-03-14 14:37:17 +01:00
MainMenu.xib SFML-Cocoa is now part of the cmake-based examples 2012-01-30 12:23:18 +01:00
NSString+stdstring.h Updated the copyright text 2012-03-14 14:37:17 +01:00
NSString+stdstring.mm Remove trailing spaces 2013-09-20 18:52:57 +02:00
readme.txt Updates readme.txt of cocoa example 2012-01-30 14:50:11 +01:00

SFML IN COCOA APPLICATION
=========================

This is a small example of the integration of SFML in a Cocoa application.

Features
--------

 * This example shows how basic UI elements can interact with SFML 
   render areas such as sf::RenderWindow (you can use sf::Window and 
   OpenGL code too, of course).
 * It also provides tools for converting NSString to and from 
   std::[w]string in an Objective-C Category of NSString.
 * Moreover, it shows how you can prevent annoying the system alerts
   produced when the SFML view has focus and the user press a key
   (see SilentWindow interface in CocoaAppDelegate.[h|mm]).

Special Considerations
----------------------

While mixing SFML into a Cocoa application you have to deal with mixing
C++ and Objective-C. In order to proceed you should use .mm extension for
Objective-C++ files.

Be aware of the limitations of Objective-C++. Please refer to the official
documentation provided by Apple for more information.

You can also work around these limitations by using CSFML.