the stack trace :

/com_codename1_nui_NTextFieldNativeImpl.m:279:23: error: use of undeclared
identifier 'font'

            float s = font.pointSize / scale;

                      ^

/com_codename1_nui_NTextFieldNativeImpl.m:280:25: error: use of undeclared
identifier 'font'; did you mean 'jfont'?

            utf.font = [font fontWithSize:s];

                        ^~~~

                        jfont

/com_codename1_nui_NTextFieldNativeImpl.m:256:17: note: 'jfont' declared
here

    JAVA_OBJECT jfont =
com_codename1_nui_NTextField_getNativeFont___int_R_java_lang_Object(CN1_THREAD_GET_STATE_PASS_ARG
idx);

                ^

/com_codename1_nui_NTextFieldNativeImpl.m:280:25: warning: receiver type
'JAVA_OBJECT' (aka 'struct JavaObjectPrototype *') is not 'id' or interface
pointer, consider casting it to 'id' [-Wreceiver-expr]

            utf.font = [font fontWithSize:s];

                        ^~~~

/com_codename1_nui_NTextFieldNativeImpl.m:282:24: error: use of undeclared
identifier 'font'; did you mean 'jfont'?

            utf.font = font;

                       ^~~~

                       jfont

/com_codename1_nui_NTextFieldNativeImpl.m:256:17: note: 'jfont' declared
here

    JAVA_OBJECT jfont =
com_codename1_nui_NTextField_getNativeFont___int_R_java_lang_Object(CN1_THREAD_GET_STATE_PASS_ARG
idx);

                ^

/com_codename1_nui_NTextFieldNativeImpl.m:282:22: warning: incompatible
pointer types assigning to 'UIFont * _Nullable' from 'const JAVA_OBJECT'
(aka 'struct JavaObjectPrototype *const') [-Wincompatible-pointer-types]

            utf.font = font;

                     ^ ~~~~

/com_codename1_nui_NTextFieldNativeImpl.m:294:1: warning: conflicting
return type in implementation of 'stopEditing': 'BOOL' (aka 'bool') vs
'void' [-Wmismatched-return-types]

Le ven. 3 avr. 2020 à 03:00, Steve Hannah <[email protected]> a
écrit :

> Xcode will show the stack in its left panel.
>
> On Thu, Apr 2, 2020 at 6:59 PM B3G B3G <[email protected]> wrote:
>
>> nothin traced in xcode, i think the following screenshot will help you
>>
>>
>> Le ven. 3 avr. 2020 à 02:43, Steve Hannah <[email protected]>
>> a écrit :
>>
>>> Can you post the stack trace from Xcode?
>>>
>>> On Thu, Apr 2, 2020 at 6:04 PM B3G B3G <[email protected]> wrote:
>>>
>>>> I am trying to test NTextField in Xcode, i have already Implement a
>>>> cn1-native-controls in my project and implementation has ben well
>>>> done.  but, unfortunately the app crash while i trying to
>>>> instantiate "NTextField". I extracted the generated source code & run
>>>> it on Xcode this is the error log trace I got: (screen shot)
>>>>
>>>>
>>>> my code is :
>>>>
>>>>
>>>>          NTextField tf1 = new NTextField(TextField.PASSWORD);
>>>>
>>>>
>>>> tf1.getAllStyles().setFont(Font.createTrueTypeFont(Font.NATIVE_MAIN_LIGHT,
>>>> 15f));
>>>>
>>>>             System.out.println("Finished setting font");
>>>>
>>>>             tf1.getAllStyles().setFgColor(0x003300);
>>>>
>>>>             tf1.getAllStyles().setBgTransparency(255);
>>>>
>>>>             tf1.getAllStyles().setBgColor(0xcccccc);
>>>>
>>>>             tf1.getAllStyles().setAlignment(CENTER);
>>>>
>>>>
>>>> Do you have any fix for this issue?
>>>>
>>>>
>>>>
>>>> If you are experiencing an issue please mention the full platform your
>>>> issue applies to:
>>>> IDE: NetBeans
>>>> Desktop OS : MacOS
>>>> Simulator : Iphone XR
>>>> Device
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/codenameone-discussions/556ed685-57a2-434d-864c-6a89a6e83ac2%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/556ed685-57a2-434d-864c-6a89a6e83ac2%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> Steve Hannah
>>> Software Developer
>>> Codename One
>>> http://www.codenameone.com
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>>
>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVEpoLAVt0S7OtKLK22VNRM1nPGog0OomUyw-R6O_k%3DjA%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVEpoLAVt0S7OtKLK22VNRM1nPGog0OomUyw-R6O_k%3DjA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/codenameone-discussions/CAM7EqfF%3DicM0VUL1AsxWeQ8MP-ayQXFWj-w6D8KUSohCqeNFPQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/codenameone-discussions/CAM7EqfF%3DicM0VUL1AsxWeQ8MP-ayQXFWj-w6D8KUSohCqeNFPQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXfPGtgJKV%3DsR-mgMD3AgF6tj7fcVU%3DBSSnc4dv4X4G1A%40mail.gmail.com
> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKXfPGtgJKV%3DsR-mgMD3AgF6tj7fcVU%3DBSSnc4dv4X4G1A%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAM7EqfGCqh4zVBOUzN1ZNdmwJvLC%2BwSuq%2BsYTASHtmX6gaiUtw%40mail.gmail.com.

Reply via email to