CCTextFieldTTF text input

Hi

how do i get the input text from cctextfield so i can save it using ccuserdefault ?
does getString works? like this:

ptxt->attachWithIME();
CCUserDefault::sharedUserDefault()->setStringForKey(“textInput”,_ptxt->getString() );

Well, why haven’t you tried? :slight_smile: It should work :slight_smile: