Re: Creating a Bundle via Code
Re: Creating a Bundle via Code
- Subject: Re: Creating a Bundle via Code
- From: Grant Limberg <email@hidden>
- Date: Fri, 20 Jun 2008 16:00:37 -0700
Currently, the user drags an existing image from their filesystem to
an NSImageView bound to an NSData attribute in the sqlite data store.
This causes the decompression from 1.5MB to 20MB. As you can see,
this isn't exactly efficient. Hence the question on package/bundle
creation. I'm wanting to just store the jpeg directly to disk and
just store a URL to it in the sqlite data store.
Grant Limberg
email@hidden
LinkedIn: http://www.linkedin.com/in/grantlimberg
http://www.glsoftware.net
On Jun 20, 2008, at 3:53 PM, j o a r wrote:
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