NSOpenPanel related memory questions

Deadly 提交于 2019-12-11 15:56:30

问题


Below is my code:

NSOpenPanel *openDlg = [NSOpenPanel openPanel];
[openDlg setCanChooseFiles:YES];
[openDlg setAllowedFileTypes:[NSArray arrayWithObjects:@"pdf", nil]];
if([openDlg runModal] == NSOKButton) {
   ...
}

Before I call runModal the memory used was 30MB, but after calling it, the memory used seemed to be 70MB, and when I scroll up and down, the used memory is increasing.

Can anyone tell me the reason? Is it kind of memory leak?

来源:https://stackoverflow.com/questions/16009317/nsopenpanel-related-memory-questions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!