KeyTranslate not in scope - osx 10.7

Started by
0 comments, last by szymczyk 12 years, 8 months ago
[color="#333333"]Hi all, please can you help me with this?

[font="Lucida Grande"][color="#333333"]I'm trying to compile on my mac (osx lion / 10.7) one older application coded in 10.5/carbon in 10.7 and I'm getting following errors:[/font]


GngGLWindow_OSX.cpp:206: error: 'KeyTranslate' was not declared in this scope
GngGLWindow_OSX.cpp: At global scope:
GngGLWindow_OSX.cpp:214: warning: unused parameter 'myHandler'
GngGLWindow_OSX.cpp: In function 'void handleMouseEvents(OpaqueEventHandlerCallRef*, OpaqueEventRef*, GngGLWindow*)':
GngGLWindow_OSX.cpp:289: error: 'GetWindowBounds' was not declared in this scope
GngGLWindow_OSX.cpp:328: error: 'typeLongInteger' was not declared in this scope
GngGLWindow_OSX.cpp: In function 'OSStatus winEvtHndlr(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)':
GngGLWindow_OSX.cpp:446: error: 'kEventWindowDrawContent' was not declared in this scope
GngGLWindow_OSX.cpp:457: error: 'FrontWindow' was not declared in this scope


[color="#333333"]I figured out that most of these functions are out from 10.6 SDK. Is there some translation table where I can see what are the new functions? Also please where can I get SDK manual?

[color="#333333"]any help more than appreciated.
Advertisement
Carbon is dead so there are no new functions to replace the old Carbon functions. Apple wants you to use Cocoa instead of Carbon.

I'm assuming you're using Carbon because you want to code in C++ instead of Objective-C. If this is the case, you would be better off using a cross-platform library like SDL, SFML, or Allegro.
Mark Szymczyk
Author of Mac Game Programming and Xcode Tools Sensei
http://www.meandmark.com

This topic is closed to new replies.

Advertisement