aTrack은 ITReference * 객체이며, value는 NSImage * 객체로, URL을 통해 jpeg로 초기화됩니다.obj-c AppScript를 사용하여 iTunes 트랙에 삽화를 추가하려면 어떻게합니까?
2010-03-09 16:59:42.860 Sandbox[2260:a0f] Can't pack object of class NSImage (unsupported type): <NSImage 0x10054a440 Size={0, 0} Reps=(
내가 다음 코드 시도 :
[[[[[aTrack artworks] data_] set] to:value] send];
나는 GDB에 다음과 같은 메시지가
NSData *imageData = [[NSData alloc] initWithData:[value TIFFRepresentation]];
[[[[[aTrack artworks] data_] set] to:imageData] send];
을하고이 메시지 대신
2010-03-09 16:46:09.341 Sandbox[2193:a0f] Can't pack object of class NSConcreteData (unsupported type): <4d4d002a 00000000>
를 얻을 수 AppScript 설명서, "아트웍"항목의 "데이터"속성이 PICTPicture 이미지라는 것입니다.
어떻게 NSImage를 PICT로 변환합니까? AppScript를 모두 잘못 사용하고 있습니까?