Cocoa Widgetset hangs in endless loop once TEdit becomes focus
Original Reporter info from Mantis: accSone
-
Reporter name:
Original Reporter info from Mantis: accSone
- Reporter name:
Description:
SetFocus triggers BecomesFirstResponder Message that triggeres SetFocus again:
See stack:
#0 SETFOCUS(0x1028e90c0, 4327572864) at cocoawinapi.inc:1700
#1 SETFOCUS(4327572864) at winapi.inc:926
#2 WNDPROC(0x102841410, {MSG = 7, UNUSEDMSG = 0, WPARAM = 0, LPARAM = 0, RESULT = 0}) at customform.inc:1396
#3 DELIVERMESSAGE(0x102841410, 0) at lclmessageglue.pas:112
#4 SENDSIMPLEMESSAGE(0x102841410, 7) at lclmessageglue.pas:143
#5 LCLSENDSETFOCUSMSG(0x102841410) at lclmessageglue.pas:193
#6 BECOMEFIRSTRESPONDER(0x10288a040) at cocoa/cocoawscommon.pas:776
#7 \"-[TCocoaPanel becomeFirstResponder]\"((^TCocoaPanel) 0x102d2fbb0, 0x7fff89605ad8) at cocoa/cocoaprivate.pp:492
#8 -[NSWindow makeFirstResponder:] at :0
#9 -[NSWindow endEditingFor:] at :0
#10 -[NSView removeFromSuperview] at :0
#11 -[_NSKeyboardFocusClipView removeFromSuperview] at :0
#12 -[NSWindow endEditingFor:] at :0
#13 -[NSView removeFromSuperview] at :0
#14 -[_NSKeyboardFocusClipView removeFromSuperview] at :0
#15 -[NSCell endEditing:] at :0
#16 -[NSTextField textDidEndEditing:] at :0
#17 _nsnote_callback at :0
#18 __CFXNotificationPost at :0
#19 _CFXNotificationPostNotification at :0
#20 -[NSNotificationCenter postNotificationName:object:userInfo:] at :0
#21 -[NSTextView(NSSharing) resignFirstResponder] at :0
#22 -[NSWindow makeFirstResponder:] at :0
#23 SETFOCUS(0x1028e90c0, 4327572864) at cocoawinapi.inc:1700
#24 SETFOCUS(4327572864) at winapi.inc:926
#25 UPDATESHOWING(0x102841410) at customform.inc:2703
#26 DOALLAUTOSIZE(0x102841410) at wincontrol.inc:3547
#27 ENABLEAUTOSIZING(0x102841410) at control.inc:5429
#28 SETVISIBLE(0x102841410, true) at control.inc:4269
#29 SETVISIBLE(0x102841410, true) at customform.inc:486
#30 SHOW(0x102841410) at customform.inc:2183
#31 RUN(0x1028403b0) at application.inc:1377
#32 PASCALMAIN at project1.lpr:19
#33 SYSTEM_FPC_SYSTEMMAIN$LONGINT$PPCHAR$PPCHAR at :0
Steps to reproduce:
Put a TEdit and a TButton on a TForm and compile it with Cocoa Widgetset. As soon as TEdit gots the focus program hangs.