CallBack iOS not working

Viewed 293

I'm trying to call a static method of a codename one class from a native interface implementation in Objective-C (iOS). I thus use a callback. I imported the header file of the wanted class and the

#include "CodenameOne_GLViewController.h"

The building works but the callback does not work (the method takes a string and shows a dialog with the given string but nothing is displayed when running the app). Here is the callback line:

package_ClassName_methodName___java_lang_String(CN1_THREAD_GET_STATE_PASS_ARG fromNSString(CN1_THREAD_GET_STATE_PASS_ARG myString));

Where my string is declared as NSString * mySTring = @"hi!".

I tried a simple callback method that does not take arguments. Unfortunately, it did not work either.

package_ClassName_methodName__(CN1_THREAD_GET_STATE_PASS_SINGLE_ARG);

Did I miss something?

1 Answers
Related