8 Replies
      Latest reply on Mar 14, 2019 2:45 AM by eskimo
      GigaPuddi Level 1 Level 1 (0 points)

        Hi, I need to replace some of the NSString data I am using into mutable objects in order to erase any trace of the data in the memory.

        I have looked for a long time every (best) means to do it and found that using NSMutableData along with the method : https://developer.apple.com/documentation/foundation/nsmutabledata/1415526-resetbytesinrange?language=objc but I found no similar method for NSMutableString and that brings to me the following question :

        Is it possible to use NSMutableString objects in a similar way to delete easily the memory and be sure that the pointer is not just placed somewhere else and the previous data still remains?

        It would be a lot easier for me to just replace the NSString with NSMutableString rather than NSMutableData.