item is simple, it has an NSImage object and an NSString that provides an ID for the item. Further down in... ee three required declarations:
<code objc>
- (NSString *) imageUID;
- (NSString *) imageRepresentationType;
- (id) imageRepresentation;
</code>
In order for th... hree required protocol methods:
<code objc>
- (NSString *) imageUID
{
return imageID;
}
- (NSString *) i
====== 패스 스트링을 만들어가는 코드 ======
<code objc>
NSString *filePath =
// 처음에는 @"Downloads"만 있었는데, "/z"를 ... // 다만 없는 폴더를 만들어 주진 않는다.
[[[NSHomeDirectory() stringByAppendingPathComponent:@"Downloads/z"]
stringByAppendingPathComponent:fileName]
// 확장자를 붙이고 싶... 걸 쓰면 된다. 구지 "."을 붙이네 마네 하지 않아도 됨
stringByAppendingPathExtension:@"jpg"];
</code>