J'ai essayé d'utiliser How to load JPG file into NSBitmapImageRep? pour répondre à ma question, mais je reçois:Comment charger un JPEG dans une matrice d'image bitmap?
"types de pointeur incompatibles initialisation 'nsbitmapimagerep *' avec une expression de type 'nsimagerep *'". en ce qui concerne:
NSImage *controlImage = [[NSImage alloc] initWithContentsOfFile:filePath];
NSBitmapImageRep *imageRep = [[controlImage representations] objectAtIndex:0]; //"incompatible pointer types initializing 'nsbitmapimagerep *' with an expression of type 'nsimagerep *'"