SFML/examples/cocoa
2023-05-03 13:33:42 -06:00
..
resources Update to year 2023 2023-01-12 11:38:41 +01:00
CMakeLists.txt Fix CMake formatting inconsistencies 2022-10-06 20:33:40 +02:00
CocoaAppDelegate.h Update to year 2023 2023-01-12 11:38:41 +01:00
CocoaAppDelegate.mm Remove default sf::Sprite constructor 2023-05-03 13:33:42 -06:00
main.m Update to year 2023 2023-01-12 11:38:41 +01:00
MainMenu.xib
NSString+stdstring.h Update to year 2023 2023-01-12 11:38:41 +01:00
NSString+stdstring.mm Reorder includes hierarchically 2023-04-25 17:25:33 +02:00
readme.txt Fix whitespace: Convert tabs to spaces and remove trailing whitespace. 2015-04-15 01:53:43 +02: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.