I'm trying to read a TIFF off the pasteboard, but it doesn't seem to work for me. What I'm doing is going into Finder, finding a TIFF file and Command-C it.
Among other types I then find on the pasteboard are: NeXT TIFF v4.0 pasteboard type and public.tiff If I take either of those from the pasteboard and write the NSData object to a file: [content writeToFile:@"/tmp/foo.tiff"atomically:YES]; or else if I make an NSImage from the data: [[NSImagealloc] initWithData:content] and display it in an NSImageView then I always see the generic TIFF icon, i.e. the one with a photo of a child scattered on the table, with a loupe on top of it. The same thing happens for JPEGs, GIFS and PNGs, but not for com.apple.icns. If I take the com.apple.icns, it displays correctly. What am I doing wrong? __________________________________________________________________________________ Win 1 of 4 Sony home entertainment packs thanks to Yahoo!7. Enter now: http://au.docs.yahoo.com/homepageset/ _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com