CoreData, image storage - NSImage or CGImage?
CoreData, image storage - NSImage or CGImage?
- Subject: CoreData, image storage - NSImage or CGImage?
- From: Graham Perks <email@hidden>
- Date: Mon, 13 Aug 2007 16:32:36 -0500
My app needs to store some image data in a Core Data binary field
(I've de-normalized the image to a separate entity).
Right now it's all working storing NSImages... is this the right way
to be doing it? Should I somehow be using CGImage or something else?
I do want to create a thumbnail of the images for performance, so I
was looking at CGImageSourceCreateThumbnailAtIndex. Of course that
doesn't use NSImage; the resulting thumbnail is a CGImage. I'd want
to stash the thumbnail in Core Data so do I need to convert to an
NSImage at that point? Or should I switch everything to store
CGImages in CoreData?
Thanks,
Graham Perks.
http://www.asinglepixel.com
_______________________________________________
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