Re: Creating a Bundle via Code
Re: Creating a Bundle via Code
- Subject: Re: Creating a Bundle via Code
- From: j o a r <email@hidden>
- Date: Fri, 20 Jun 2008 15:53:33 -0700
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 (email@hidden)
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:
This email sent to email@hidden