cocoa - NSTokenField Suggest but don't complete -


i feel must common issue i'm struggling figure out, couldn't find else asked question so... have nstokenfield , when user begins typing make soap request , names similar have entered. issue suggestions don't match have typed. example, match email , last names, persons full name appears in suggestion array. since letters don't match, nstokenfield changes has been typed first item in array. there way turn off autocomplete , have suggestion box appear?

    - (nsarray *)tokenfield:(nstokenfield *)tokenfield completionsforsubstring:(nsstring *)substring indexoftoken:(nsinteger)tokenindex indexofselecteditem:(nsinteger *)selectedindex {     *selectedindex = -1;     return nsarray; } 

it turns out assigning selectedindex incorrectly if set -1 nothing selected.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -