osx - Parse Issue: Expected Expression (Objective C) -



osx - Parse Issue: Expected Expression (Objective C) -

for ever reason xcode has decided doesn't me... i'm getting error stated in title on line

- (void)tableviewselectiondidchange:(nsnotification *)notification { nsinteger row = [_tableview selectedrow]; if (row == –1) //<---- line { return; } nsstring *selectedvoice = [_voices objectatindex:row]; [_speechsynth setvoice:selectedvoice]; nslog(@"new voice = %@", selectedvoice); }

i believe has _tableview beingness befuddled because when attempted ide help me type (you know when guesses might finish word doing api lookup of available functions) doesn't show selectedrow possibility :(

incase it's needed i've set .m , .h in pastebin save space on screens... fyi i'm next coca programming mac osx 4th edition chapter 6.10

in line

if (row == –1)

the minus-sign not real minus-sign, "en dash" (unicode u+2013). perhaps accidentally pressed option-key minus-key when typing code.

replacing character minus-sign fixes problem.

objective-c osx tableview

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -