On 22.04.2009, at 00:03, Henrietta Read wrote:
NSArray *files = [pboard propertyListForType:NSTIFFPboardType]; [self setImage:[files objectAtIndex:0]];
This is probably your mistake. setImage expects an NSImage*. Whatever is on the pasteboard in that array you have, it's unlikely to be an NSImage. AFAIK NSTIFFPboardType is an NSData containing raw TIFF data, so you'll probably have to create an NSImage from that or something like that.
Mind you, that's from memory, I might be misremembering this pasteboard flavour.
Cheers, -- Uli Kusterer "The Witnesses of TeachText are everywhere..." http://www.zathras.de _______________________________________________ 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