Changeset 838

Show
Ignore:
Timestamp:
05/19/03 09:56:58 (5 years ago)
Author:
morris
Message:

allow clicks to be compared lexically rather than by their position in the kana system

this will give a correct result when, for example, the user clicked a 'su' with dakuten, and the correct kana is 'tsu with dakuten (because 'zu' eq 'zu')

this is a hack, but it is counter-intuitive to tell the user that 'zu' was incorrect and 'zu' was correct

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Nuku/trunk/Controller.m

    r832 r838  
    1 /* $Id: Controller.m,v 1.9 2003/04/14 02:58:06 morris Exp $ */ 
     1/* $Id: Controller.m,v 1.10 2003/05/19 07:56:58 morris Exp $ */ 
    22 
    33/* 
     
    265265                        // --- get the name of the selected button and the correct name 
    266266                        clickedButton   = [sender cellAtRow:[sender selectedRow] column:[sender selectedColumn]]; 
    267                         clickedKana             = [clickedButton alternateTitle]; 
     267                        clickedKana             = [clickedButton title]; 
    268268                        currentKana             = [_tutor getCurrentKanaName]; 
    269269                        [_tutor setCurrentKanaName:currentKana]; 
    270270                         
    271                         if([clickedKana isEqualToString:currentKana]) 
     271                        if([clickedKana isEqualToString:[_tutor getExpandedKanaName:currentKana]]) 
    272272                                [self userWasCorrect:clickedKana]; 
    273273                        else