In NSImage class reference it is said that there exist method initWithData
, but why xCode says it doesn't exist?
I use it like this:
NSData *imgData = [[imageView image] TIFFRepresentation];
fotoImg = [NSImage initWithData:imgData];
And i get warning:
Class method '+initWithData:' not found (return type defaults to 'id')
Why is this happening?