If you are experiencing any trouble reading image file into the Mac OS app,
you are probably using sandbox.
if you execute your CGImage() init method in your sandbox environment, app does not do anything. no error message, no nothing.
using Data() will let you know that you don't have any permission to access the file out of the sandbox. turn the damn option off
Playground is also executing the file in the context of sandbox. No way to turn it off, but if you are building the app using Cocoa framework, just turn your sandbox option off.
'데이터분석 > Code & Tools & Script Snippet' 카테고리의 다른 글
kalman script (0) | 2018.06.09 |
---|---|
Error in plotting with ggplot (0) | 2018.05.27 |
모델평가 smape 파일창고 (0) | 2018.04.22 |
데이터 분석대회 참가 정리 (1) (0) | 2018.04.21 |
R단점 (0) | 2018.04.19 |