まず、ビューの TIFF 表現を作成します。
// Get the data into a bitmap.
[self lockFocus];
rep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:[self bounds]];
[self unlockFocus];
data = [rep TIFFRepresentation];
複数のファイル タイプをサポートするには、次を使用します。
data = [rep representationUsingType:(NSBitmapImageFileType)storageType
properties:(NSDictionary *)properties];
NSBitmapImageFileType は、ビットマップ イメージのファイル タイプを指定する列挙定数です。NSBMPFileType、NSGIFFileType、NSJPEGFileType、NSPNGFileType、または NSTIFFFileType のいずれかです。
NSSavePanel をカスタマイズする必要がある場合は、アクセサリ ビューを調べてください: http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/AppFileMgmt/Articles/ManagingAccessoryViews.html