-[IMKCandidates candidateStringIdentifier:] always returns 0

Number:rdar://34944196 Date Originated:2017-10-11
Status:Open Resolved:
Product:macOS + SDK, Keyboards, mice and trackpads Product Version:
Classification:Bug Reproducible:Always
-[IMKCandidates candidateStringIdentifier:] has a implement of always returning 0. 

Because [IMKCandidates selectCandidateWithIdentifier:] depends on its return value, so we cannot use it. As a result, we cannot manipulate candidates window programatically.

Steps to Reproduce:
I put a commit on NumberInput example.


Expected Results:
It returns unique value for each candidates.

Actual Results:
It returns 0. 

- macOS 10.13.1 Beta (17B25c)
- Version 9.0 (9A235)


I otool-ed its method and found its body is empty.

-[IMKCandidates candidateStringIdentifier:]:
0000000000055d22	pushq	%rbp
0000000000055d23	movq	%rsp, %rbp
0000000000055d26	xorl	%eax, %eax
0000000000055d28	popq	%rbp
0000000000055d29	retq


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!