• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CoreData, image storage - NSImage or CGImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: CoreData, image storage - NSImage or CGImage?
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: attributedTitle method of NSMenuItem returns no attributes
  • Next by Date: Re: CoreData, image storage - NSImage or CGImage?
  • Previous by thread: attributedTitle method of NSMenuItem returns no attributes
  • Next by thread: Re: CoreData, image storage - NSImage or CGImage?
  • Index(es):
    • Date
    • Thread