私は私の質問に答えるためにHow to load JPG file into NSBitmapImageRep?を使用してみましたが、私は得る:「『* nsimagerep』タイプの表現で 『nsbitmapimagerep *』を初期化し、互換性のないポインタ型」JPEGをビットマップイメージ配列に読み込む方法は?
を。
NSImage *controlImage = [[NSImage alloc] initWithContentsOfFile:filePath];
NSBitmapImageRep *imageRep = [[controlImage representations] objectAtIndex:0]; //"incompatible pointer types initializing 'nsbitmapimagerep *' with an expression of type 'nsimagerep *'"