Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

iOS and MacOS / where should I put my object-c code?

Author
Message
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 3rd Nov 2012 05:59
I want to compile a mac version of a game. There is no UntitledViewController in Mac template,isn't it? Then where should I put my object-c code?
I need to add in-app purchase, Facebook and twitter code.

The Miracrea Games
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 3rd Nov 2012 17:02
You create your own .mm code file and then add it to the Classes folder in the Mac project.

As for adding the other bits, I can't help, don't know.

Cheers,
Ancient Lady
AGK Community Tester
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 6th Nov 2012 15:30
You need to create your implementation for the view controller and import in the .cpp the cocoa and the lib you need.
If you wanna use views and windows remember that the main window is GL, so create a variable to store it in to reuse elsewhere.

Long life to Steve!

Login to post a reply

Server time is: 2024-04-20 05:27:05
Your offset time is: 2024-04-20 05:27:05