i'm quite new to objective C and followed some instructions i found, but at the moment i got stuck.
i am trying to load an image with the following code:
NSBitmapImageRep *img;
img = [NSBitmapImageRep imageRepWithContentsOfFile:filename];
"filename" is a valid pointer. But the compiler tells me:
Incompatible pointer types assigning to 'NSBitmapImageRep *' from 'NSImageRep * _Nullable'
What am i missing or doing wrong ?