(just sharing) C++ to Objective-C callbacks

Member
Posts: 93
Joined: 2008.11
Post: #1
Hi guys,

I just want to share a nice little one-file-lib I written for my daily needs. Its use is not limited or strictly coupled to game development but you might find it useful if you mix objective-c with c++.

The problem: You have some objective-c code (pretty common on iOS hehe). Your objective-c part is mainly UI (if you mix with UIKit for example) but your logic and game code is written in c++ (to keep things cross-platform for example). Your 'core' wants to notify your UI/Objective-C part about just anything happening in the 'core'. You want to pass some data to your UI and maybe you even want to return a value back from the UI into your c++ 'core'. How do you do that?

The (one of possible) solution: https://github.com/godexsoft/objc_callback

Hope you find it as useful as I do Smile
Alex

TapMania - iPhone StepMania // Human knowledge belongs to the world!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Sharing uniforms across shader programs iamflimflam1 4 4,366 Sep 3, 2010 12:25 PM
Last Post: Frogblast
  sharing files between apps captainfreedom 3 2,769 Apr 19, 2010 01:11 PM
Last Post: captainfreedom
  Hi everyOne ,3D and other knowledge sharing priyankranka 2 2,662 Feb 1, 2009 10:41 PM
Last Post: priyankranka