On Jun 20, 2008, at 3:43 PM, Grant Limberg wrote:
As far as I know, you can't store a raw jpeg in Core Data directly without turning it into an NSData object first which in turn decompresses it.
It sounds quite possible that Core Data only support images in the form of NSData. That said, I see no reason why you would have to decompress the JPEG to generate this NSData.
We need to know more about your application to provide more detailed assistance. Where do you get your JPEG images from? Over the network? From files in the file system? Pasted into an image view by the user?
It sounds like you go from JPEG -> NSImage -> NSData? Instead of creating a NSImage, how about just storing the JPEG as is to the file system first, and only later generating NSImages as needed for display in your application.
j o a r _______________________________________________ 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 [EMAIL PROTECTED]