I just put the TextField on UI and call the NSTextField setString, but it is memory usage is increasing.
- StoryBoard
- Objective C
put TextField and button to UI set TextField variable to "ABC" in ViewController.h @property (weak) IBOutlet NSTextView* ABC;
on button event function //dispatch_sync(dispatch_get_main_queue(), ^{ [_ABC setString:str]; //});
How to block the memory usage increase?
Also I was check on Instruments app, and there are many malloc 48bytes, its count is almost same with setString count.
Thank you!