Game Development Community

iT2D 1.4 oniPhoneWillTerminate not working

by Javier Otaegui · in iTorque 2D · 09/17/2010 (7:02 pm) · 5 replies



I've been working with iTGB 1.4 for a few days now, and I can't do that oniPhoneWillTerminate callback work fine.

In fact, none of the callbacks (oniPhoneChangeOrientation, "touch", etc) are beeing call...

I can put some animations on screen, play with particles and behaviors with no problem, even "mouse" input is ok, but no way to make the other callbacks to work.

I suspect that the problem is somewere in the Target-config, or maybe some #define im not doing well(engine is untouched from install to today), but can't figure it out.

Please help! :)
thaks in advance.

#1
09/17/2010 (7:42 pm)
the will terminate will with iOS only happen when you kill it in the task manager bar. when going out, terminates don't happen the become active / inactive events are iOS wise happening then (and I guess they might potentially work as well)
#2
09/17/2010 (9:23 pm)
Marc, thanks for the fast responce.

I understand what you say about killing of the process, but the problem here is more general, NONE of the OS callbacks are working: oniPhoneChangeOrientation, nor oniPhoneTouchDown, or any of them.

They are not even beeing call on Objective-C code as far as I could see...

I'm a little lost between #defines and Xcode/Target configuration, but no luck till now...
#3
09/18/2010 (2:32 pm)
Very odd...

Some of the callbacks mentioned are within the app delegate, and if you app delegate isn't working right your app won't work. Put some breakpoints within those callbacks in your app delegate file and see if they are ever being called and report back.
#4
09/19/2010 (3:21 am)
Here's how to fix the oniPhoneChangeOrientation callback:

www.torquepowered.com/community/resources/view/20067
#5
09/20/2010 (2:14 pm)


Welcome to weird world...

I've follow the tutroial that Conor posted (with the #define fix), and now EVERYTHING works...

Looks like it was not compiling that part before (obviously I had rebuild many times before).

Weird... and a little scary, but works!
Thanks.